Practical angularJs How to avoid unsafe tags in rendered data?
我想大声告诉你2017-05-15 16:52:06
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.
漂亮男人2017-05-15 16:52:06
Introduce ngSanitize
模块后用 directive ngBindHtml
, such as:
<p ng-bind-html="binding.html"></p>