This repository was archived by the owner on Apr 12, 2024. It is now read-only.
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 @@ -382,15 +382,17 @@ See [80739409](https://github.com/angular/angular.js/commit/807394095b991357225a
382
382
383
383
## ngBindHtmlUnsafe has been removed and replaced by ngBindHtml
384
384
385
- `ngBindHtml` which has been moved from `ngSanitize` module to the core `ng` module.
386
-
387
385
`ngBindHtml` provides `ngBindHtmlUnsafe` like
388
386
behavior (evaluate an expression and innerHTML the result into the DOM) when bound to the result
389
387
of `$sce.trustAsHtml(string)`. When bound to a plain string, the string is sanitized via
390
388
`$sanitize` before being innerHTML'd. If the `$sanitize` service isn't available (`ngSanitize`
391
389
module is not loaded) and the bound expression evaluates to a value that is not trusted an
392
390
exception is thrown.
393
391
392
+ When using this directive you can either include `ngSanitize` in your module's dependencis (See the
393
+ example at the {@link ngBindHtml} reference) or use the {@link $sce} service to set the value as
394
+ trusted.
395
+
394
396
See [dae69473](https://github.com/angular/angular.js/commit/dae694739b9581bea5dbc53522ec00d87b26ae55).
395
397
396
398
You can’t perform that action at this time.
0 commit comments