The ng-bind-html directive removes a style attribute when rendering
3 answers
Please note that ng-bind-html-unsafe been removed from Angular. I would prefer to create a filter instead of adding a function to the scope to avoid polluting areas and improve code reuse:
app.filter('unsafe', ['$sce', function ($sce) { return function (input) { return $sce.trustAsHtml(input); } }]); There is no need to write anything in the field, just add a filter to the template:
<div ng-bind-html="resultList.section | unsafe"></div> 0