写个过滤器
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 ">
写个过滤器
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 ">