ng-bind-html="trustAsHtml(procedure.description[0].answer)
|limitTo:100"
$scope.trustAsHtml = $sce.trustAsHtml;
答案 0 :(得分:1)
2件事:
$ scope.trustAsHtml = $ sce.trustAsHtml(procedure.description [0] .answer);
ng-bind-html= "trustAsHtml|limitTo:100"