mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00:00
docs($sce): ng-bind-html takes an expression {{}}
This commit is contained in:
parent
c5c75386e4
commit
fb483d56a7
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue