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

docs(ngBindHtml): fix awkward wording #10111

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions src/ng/directive/ngBind.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,13 @@ var ngBindTemplateDirective = ['$interpolate', '$compile', function($interpolate
* @name ngBindHtml
*
* @description
* Creates a binding that will innerHTML the result of evaluating the `expression` into the current
* element in a secure way. By default, the innerHTML-ed content will be sanitized using the {@link
* ngSanitize.$sanitize $sanitize} service. To utilize this functionality, ensure that `$sanitize`
* is available, for example, by including {@link ngSanitize} in your module's dependencies (not in
* core Angular). In order to use {@link ngSanitize} in your module's dependencies, you need to
* include "angular-sanitize.js" in your application.
* The ngBindHtml attribute tells Angular to replace the inner HTML content of the specified HTML
* element with the value of a given expression, and to update the inner HTML content when the value
* of that expression changes in a secure way. By default, the innerHTML-ed content will be sanitized
* using the {@link ngSanitize.$sanitize $sanitize} service. To utilize this functionality, ensure
* that `$sanitize` is available, for example, by including {@link ngSanitize} in your module's
* dependencies (not in core Angular). In order to use {@link ngSanitize} in your module's dependencies,
* you need to include "angular-sanitize.js" in your application.
*
* You may also bypass sanitization for values you know are safe. To do so, bind to
* an explicitly trusted value via {@link ng.$sce#trustAsHtml $sce.trustAsHtml}. See the example
Expand Down