Opened 14 years ago
Closed 13 years ago
#4713 closed bug (invalid)
[autocomplete] does not handle escaped characters after selection
Reported by: | damian.biollo | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.4 |
Component: | unfiled | Version: | 1.3.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
With the autocomplete plugin, I specify a list of names and email addresses such as the following:
Me <[email protected]…> You <[email protected]…>
Obviously the angle brackets need to be escaped, so in code, the call looks something like this:
$.autocompleter (["Me <[email protected]…>", "You <[email protected]…>"]);
When it is displayed in the List UI, it is correct -- the angle brackets appear rather than the escaped chars. This is because the fillList() function uses the html() method: $("<li/>").html (...)
But when the value is selected (in selectCurrent), the raw HTML is set to the input control value, with this line: $input.val(v);
This is a bug because now the escaped characters show up instead of the angle brackets.
This is not a jQuery core bug. Please use the jQuery forums or contact the author via the method they request. For jQuery UI plugins, please file a bug on http://dev.jqueryui.com .