Sherzy
12/20/2016 - 11:23 PM

HTML bind

HTML bind

//Use $sce.trustAsHtml() in the controller to convert the html string.

$scope.thisCanBeusedInsideNgBindHtml = $sce.trustAsHtml(someHtmlVar);
<div ng-bind-html="thisCanBeusedInsideNgBindHtml"></div>