Practical angularJs How to avoid unsafe tags in rendered data?
By default, they have been filtered, so you don’t have to worry.
Unless you manually configure it through ngSanitize, you can change this default behavior.
Introduce ngSanitize 模块后用 directive ngBindHtml, such as:
ngSanitize
ngBindHtml
<p ng-bind-html="binding.html"></p>
By default, they have been filtered, so you don’t have to worry.
Unless you manually configure it through ngSanitize, you can change this default behavior.
Introduce
ngSanitize
模块后用 directivengBindHtml
, such as: