Js:
$scope.renderHtml = function (html_code) { return $sce.trustAsHtml(html_code); };
Html:
<p ng-bind-html="renderHtml(value.button)"></p>
Js:
$scope.renderHtml = function (html_code) { return $sce.trustAsHtml(html_code); };
Html:
<p ng-bind-html="renderHtml(value.button)"></p>
转载于:https://www.cnblogs.com/xiaoroad/p/4133345.html