ng-html 报 不安全 警告解决办法

app.filter('to_trusted',['$sce',function($sce){
return function(text){
return $sce.trustAsHtml(text);
}
}]);

posted @ 2014-09-15 10:20  粉条  Views(166)  Comments(0)    收藏  举报