Bug Tracker

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:


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 &lt;[email protected]…&gt;", "You &lt;[email protected]…&gt;"]);

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.

Change History (1)

comment:1 Changed 13 years ago by dmethvin

Resolution: invalid
Status: newclosed

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 .

Note: See TracTickets for help on using tickets.