File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -756,15 +756,17 @@ See [80739409](https://github.com/angular/angular.js/commit/807394095b991357225a
756
756
757
757
## ngBindHtmlUnsafe has been removed and replaced by ngBindHtml
758
758
759
- `ngBindHtml` which has been moved from `ngSanitize` module to the core `ng` module.
760
-
761
759
`ngBindHtml` provides `ngBindHtmlUnsafe` like
762
760
behavior (evaluate an expression and innerHTML the result into the DOM) when bound to the result
763
761
of `$sce.trustAsHtml(string)`. When bound to a plain string, the string is sanitized via
764
762
`$sanitize` before being innerHTML'd. If the `$sanitize` service isn't available (`ngSanitize`
765
763
module is not loaded) and the bound expression evaluates to a value that is not trusted an
766
764
exception is thrown.
767
765
766
+ When using this directive you can either include `ngSanitize` in your module's dependencis (See the
767
+ example at the {@link ngBindHtml} reference) or use the {@link $sce} service to set the value as
768
+ trusted.
769
+
768
770
See [dae69473](https://github.com/angular/angular.js/commit/dae694739b9581bea5dbc53522ec00d87b26ae55).
769
771
770
772
You can’t perform that action at this time.
0 commit comments