Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

paper-autocomplete-highlight not escaping input label text #985

Closed
janvotava opened this issue Oct 4, 2018 · 1 comment
Closed

paper-autocomplete-highlight not escaping input label text #985

janvotava opened this issue Oct 4, 2018 · 1 comment

Comments

@janvotava
Copy link

Paper autocomplete highlight is not escaping input text and is making that string html safe afterwards.

https://github.com/miguelcobain/ember-paper/blob/master/addon/components/paper-autocomplete-highlight.js#L25

PoC

{{#paper-autocomplete
  options=(arr 'foobar<strong>baz')
  selected=selectedItem
  onSelectionChange=(action (mut selectedItem))
  as |item term|}}
    {{paper-autocomplete-highlight searchText=term.searchText flags="i" label=item}}
{{/paper-autocomplete}}

image

@janvotava janvotava changed the title paper-autocomplete-highlight not escaping input text paper-autocomplete-highlight not escaping input label text Oct 4, 2018
@miguelcobain
Copy link
Collaborator

This should be fixed on master. Thanks for the report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants