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

Commit dc5bba8

Browse files
trizkopetebacondarwin
authored andcommitted
docs(ngBindHtml): fix awkward wording
Fixes #10097 Closes #10129
1 parent 16c8f29 commit dc5bba8

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/ng/directive/ngBind.js

+5-6
Original file line numberDiff line numberDiff line change
@@ -141,12 +141,11 @@ var ngBindTemplateDirective = ['$interpolate', '$compile', function($interpolate
141141
* @name ngBindHtml
142142
*
143143
* @description
144-
* Creates a binding that will innerHTML the result of evaluating the `expression` into the current
145-
* element in a secure way. By default, the innerHTML-ed content will be sanitized using the {@link
146-
* ngSanitize.$sanitize $sanitize} service. To utilize this functionality, ensure that `$sanitize`
147-
* is available, for example, by including {@link ngSanitize} in your module's dependencies (not in
148-
* core Angular). In order to use {@link ngSanitize} in your module's dependencies, you need to
149-
* include "angular-sanitize.js" in your application.
144+
* Evaluates the expression and inserts the resulting HTML into the element in a secure way. By default,
145+
* the resulting HTML content will be sanitized using the {@link ngSanitize.$sanitize $sanitize} service.
146+
* To utilize this functionality, ensure that `$sanitize` is available, for example, by including {@link
147+
* ngSanitize} in your module's dependencies (not in core Angular). In order to use {@link ngSanitize}
148+
* in your module's dependencies, you need to include "angular-sanitize.js" in your application.
150149
*
151150
* You may also bypass sanitization for values you know are safe. To do so, bind to
152151
* an explicitly trusted value via {@link ng.$sce#trustAsHtml $sce.trustAsHtml}. See the example

0 commit comments

Comments
 (0)