From b21581df9d33a7c3490d90ac3dbe8c84f3f2c473 Mon Sep 17 00:00:00 2001 From: Tony Rizko Date: Tue, 18 Nov 2014 12:08:12 -0800 Subject: [PATCH] docs(ngBindHtml): fix awkward wording changes: * @ngdoc directive * @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. to this: /** * @ngdoc directive * @name ngBindHtml * * @description * 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. --- src/ng/directive/ngBind.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/ng/directive/ngBind.js b/src/ng/directive/ngBind.js index 8ddd11f1ad5b..701394a639ab 100644 --- a/src/ng/directive/ngBind.js +++ b/src/ng/directive/ngBind.js @@ -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