Js:$scope.renderHtml = function (html_code) {
return $sce.trustAsHtml(html_code);
};Html:
<p ng-bind-html="renderHtml(value.button)"></p>
时间: 2024-11-14 12:10:24
Js:$scope.renderHtml = function (html_code) {
return $sce.trustAsHtml(html_code);
};Html:
<p ng-bind-html="renderHtml(value.button)"></p>