Opened 12 years ago
Closed 12 years ago
#6732 closed bug (notabug)
HTML encoded characters do not get decoded in the autocomplete field
Reported by: | yakovt | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.9.0 |
Component: | ui.autocomplete | Version: | 1.8.5 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
When setting the source for autocomplete with a Javascript array like so:
var availableTags = [" text "]; $( "#tags" ).autocomplete({ source: availableTags });
The special characters in the text above ( ) are displayed in the auto-suggest field as they are entered as follows:
text
The question/bug is: shouldn't this text be HTML decoded in the auto-suggest field's value so that the following is displayed in the suggestion drop down:
"text"
Note: See
TracTickets for help on using
tickets.
The labels are treated as text, not html. There's an html extension (demo) that you can use.
In the future, if you're not sure whether a specific behavior is a bug, please ask on the forums first.