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

Commit fb483d5

Browse files
mheverypetebacondarwin
authored andcommitted
docs($sce): ng-bind-html takes an expression {{}}
1 parent c5c7538 commit fb483d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ng/sce.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -427,10 +427,10 @@ function $SceDelegateProvider() {
427427
*
428428
* <pre class="prettyprint">
429429
* <input ng-model="userHtml">
430-
* <div ng-bind-html="{{userHtml}}">
430+
* <div ng-bind-html="userHtml">
431431
* </pre>
432432
*
433-
* Notice that `ng-bind-html` is bound to `{{userHtml}}` controlled by the user. With SCE
433+
* Notice that `ng-bind-html` is bound to `userHtml` controlled by the user. With SCE
434434
* disabled, this application allows the user to render arbitrary HTML into the DIV.
435435
* In a more realistic example, one may be rendering user comments, blog articles, etc. via
436436
* bindings. (HTML is just one example of a context where rendering user controlled input creates

0 commit comments

Comments
 (0)