Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 3e46852

Browse files
tommyangelocaitp
authored andcommitted
docs(ngBindHtml): explain that angular-sanitize.js is needed to depend on ngSanitize
Added comment. You need to include angular-sanitize.js otherwise you cant use ngSanitize! Closes #9400
1 parent 99f3931 commit 3e46852

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/ng/directive/ngBind.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,10 @@ var ngBindTemplateDirective = ['$interpolate', function($interpolate) {
139139
* element in a secure way. By default, the innerHTML-ed content will be sanitized using the {@link
140140
* ngSanitize.$sanitize $sanitize} service. To utilize this functionality, ensure that `$sanitize`
141141
* is available, for example, by including {@link ngSanitize} in your module's dependencies (not in
142-
* core Angular.) You may also bypass sanitization for values you know are safe. To do so, bind to
142+
* core Angular). In order to use {@link ngSanitize} in your module's dependencies, you need to
143+
* include "angular-sanitize.js" in your application.
144+
*
145+
* You may also bypass sanitization for values you know are safe. To do so, bind to
143146
* an explicitly trusted value via {@link ng.$sce#trustAsHtml $sce.trustAsHtml}. See the example
144147
* under {@link ng.$sce#Example Strict Contextual Escaping (SCE)}.
145148
*

0 commit comments

Comments
 (0)