javascript - Struts2 jQuery Autocompleter Not Escaping ASCII -


i trying find way escape ascii or special characters in autocompleter, no luck. using struts2 jquery autcompleter, , when there & in list, translates &. makes life difficult users, number of reasons, figured there attribute similar escapehtml. far, searching has come nothing. managed stumble across similar question, wasn't useful.

my action class setting values correctly, leaving me think feature of autocompleter. seeing how nobody has complained, guessing maybe doing wrong. try include relevant code below how i'm setting things.

taglib declaration:

<%@ taglib prefix="sj" uri="/struts-jquery-tags"%> 

autocompleter declaration:

<sj:autocompleter id="parentlookup" name="parentlookup" list="%{parentlistarray}" forcevalidoption="true" loadminimumcount="3" style="width:245px" onblur="checkissuerparentrelationship()"  /> 

oh, , parentlistarray string array.

any appreciated.

though old question, maybe answer may appear useful someone. have had same problem trying display quotes , autocompleter have been showing &quot; in each place. solution add following attribute sj:autocompleter:

selectbox="true" 

Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -