Skip to content
This repository was archived by the owner on Jun 24, 2022. It is now read-only.

Conversation

@cvdub
Copy link

@cvdub cvdub commented Aug 13, 2019

Use the selected element's text, rather than HTML, when setting the
value of the autocomplete element to convert escaped characters, such
as &amp, back to their original values. This allows values such as
"foo
bar" to be included in a list of autocomplete options.

Before this commit:
Type "foo & bar" in autocomplete element
Select "foo & bar" from list of suggested options
Autocomplete element's value set to "foo &amp bar"

After this commit:
Type "foo & bar" in autocomplete element
Select "foo & bar" from list of suggested options
Autocomplete element's value set to "foo & bar"

Use the selected element's text, rather than HTML, when setting the
value of the autocomplete element to convert escaped characters, such
as &amp, back to their original values. This allows values such as
"foo <br> bar" to be included in a list of autocomplete options.

Before this commit:
Type "foo & bar" in autocomplete element
Select "foo & bar" from list of suggested options
Autocomplete element's value set to "foo &amp bar"

After this commit:
Type "foo & bar" in autocomplete element
Select "foo & bar" from list of suggested options
Autocomplete element's value set to "foo & bar"
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant