ng-bind-html-unsafe was removed in Angular 1.2
ng-bind-html-unsafe
I'm trying to implement something where I need to use ng-bind-html-unsafe. In the docs and on the github commit they say:
ng-bind-html provides ng-html-bind-unsafe like behavior (innerHTML's the result without sanitization) when bound to the result of $sce.trustAsHtml(string).
How do you do this?
Filter
app.filter('unsafe', function($sce) { return $sce.trustAsHtml; });
Usage
<ANY ng-bind-html="value | unsafe"></ANY>
2.1m questions
2.1m answers
60 comments
57.0k users