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 " in each place. solution add following attribute sj:autocompleter:
selectbox="true"
Comments
Post a Comment