W.Mazur created WICKET-4691:
-------------------------------

             Summary: Unescaped html in autocomplete
                 Key: WICKET-4691
                 URL: https://issues.apache.org/jira/browse/WICKET-4691
             Project: Wicket
          Issue Type: Bug
          Components: wicket-extensions
    Affects Versions: 1.5.7
         Environment: Windows, Java 1.6
            Reporter: W.Mazur
            Priority: Minor


Create list of Strings with html keywords: List<String> list = 
Arrays.asList("a", "<td>", "<li>","</td>");
Let autocomplete display these values: @Override
                        protected Iterator getChoices(String input) {
                                return list.iterator();
                        }
html is unescaped, strings are "copy and paste"'d to html

Ajax response (from Firebug) looks like this:
<ul><li textvalue="a">a</li><li textvalue="<td>"><td></li><li 
textvalue="<li>"><li></li><li textvalue="</td>"></td></li></ul>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to