-
You need to include the angular-sanitize.js
http://ajax.googleapis.com/ajax/libs/angularjs/1.0.3/angular-sanitize.js -
Add ‘ngSanitize‘ to you module dependencies
var myApp = angular.module(‘myApp’, [‘ngSanitize’]);
-
Don’t use the
{{}}
in the attribute<h1 ng-bind-html=”item.title”></h1>
-
Don’t use
$sce.trustAsHtml()