Skip to content

Commit

Permalink
docs($sce): ng-bind-html takes an expression {{}}
Browse files Browse the repository at this point in the history
  • Loading branch information
mhevery authored and petebacondarwin committed Nov 10, 2013
1 parent c5c7538 commit fb483d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ng/sce.js
Original file line number Diff line number Diff line change
Expand Up @@ -427,10 +427,10 @@ function $SceDelegateProvider() {
*
* <pre class="prettyprint">
* <input ng-model="userHtml">
* <div ng-bind-html="{{userHtml}}">
* <div ng-bind-html="userHtml">
* </pre>
*
* Notice that `ng-bind-html` is bound to `{{userHtml}}` controlled by the user. With SCE
* Notice that `ng-bind-html` is bound to `userHtml` controlled by the user. With SCE
* disabled, this application allows the user to render arbitrary HTML into the DIV.
* In a more realistic example, one may be rendering user comments, blog articles, etc. via
* bindings. (HTML is just one example of a context where rendering user controlled input creates
Expand Down

0 comments on commit fb483d5

Please sign in to comment.