写个过滤器
xxx.filter(
'to_trusted', ['$sce', function ($sce) {
return function (text) {
return $sce.trustAsHtml(text);
}
}]
)
使用
<div class="col-md-12 ng-binding" ng-bind-html="item.content|to_trusted ">
更多专业前端知识,请上 【猿2048】www.mk2048.com