http://www.cnblogs.com/sxz2008/p/6434036.html
如果希望正常解析html代码,如下:
var app = angular.module(‘main.app‘, [‘bw.paging‘, ‘cbc.datePicker‘, ‘angular-popups‘]).filter(
‘to_trusted‘, [‘$sce‘, function ($sce) {
return function (text) {
return $sce.trustAsHtml(text);
}
}] );
注意加下划线部分
<div class="bdall br4 w484 pull-left ml4 pall6" ng-bind-html="selectedmessages.content | to_trusted "></div>
时间: 2024-10-15 17:51:28