Opened 9 years ago

Closed 9 years ago

Last modified 7 years ago

#6235 closed bug (notabug)

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@…>").

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@…");

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'):

http://ci.gscf.nmcdsp.org/termEditor?ontologies=1007

Change History (2)

comment:1 Changed 9 years ago by Scott González

Resolution: invalid
Status: newclosed

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

comment:2 Changed 7 years ago by Scott González

Milestone: TBD

Milestone TBD deleted

Note: See TracTickets for help on using tickets.