-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Typeahead use bind-html-unsafe #2884
Comments
I think we should remove its use entirely. To do this we'll need to:
This sequence should be safe because if |
Hello: If not, let me know so I can do it, and do a pull request. On a side note I've never made a contribution, do you have any additional guidelines besides the ones posted on github, say for this project in particular? Thanks for your time! |
Nothing special, except for make sure it's covered by tests :-) go for it! |
This is also popping up for our project; a fix for this would be appreciated. :) |
Same here. |
bindHtmlUnsafe is now deprecated. Use ngBindHtml instead (Google Chrome console warning) |
Same here. |
+1 |
same here |
This is now removed in |
The typeahead directive uses bind-html-unsafe for the template of matches, https://github.com/angular-ui/bootstrap/blob/master/template/typeahead/typeahead-match.html.
The property on the directive doesn't indicate on any way that it can be dangerous, it should either:
a) Remove html-bind-unsafe entirely
b) Having typeahead use html-bind-unsafe should be a parameter set explicitly.
I would be happy to do any of those.
The text was updated successfully, but these errors were encountered: