Search and Top Navigation
#6235 closed bug (notabug)
Opened October 27, 2010 01:24PM UTC
Closed October 27, 2010 01:31PM UTC
Last modified October 11, 2012 09:15PM UTC
autocomplete 'label' is being escaped since jquery-ui 1.8.3 even though it may contain markup
Reported by: | duh | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | ui.autocomplete | Version: | 1.8.3 |
Keywords: | autocomple label escaped | Cc: | |
Blocked by: | Blocking: |
Description
As described on http://wiki.jqueryui.com/Autocomplete, the autocomplete requires an array of objects (maps), containing two required properties:
- A label property to display in the autocomplete list ("John Doe <john@doe.com>").
o This can be HTML markup, if a seperate markup-free value is specified.mac data recovery
- A value property that ends up in the input field once selected ("john@doe.com");
o if undefined, same as label
o this must be plain-text (no markup)
However, since jquery-ui 1.8.3 labels containing markup are being escaped. See the following URL for a live example (search for biological compounds, like 'glucose'):
This was an intentional change. Our official docs are posted at http://docs.jquery.com/UI/Autocomplete, what you were looking at is our planning wiki. I'll remove the old information from there.
If you want html labels, you can use the html extension available here: http://github.com/scottgonzalez/jquery-ui-extensions