Angular JS shows HTML within the tag
Ok I found solution for this: JS: $scope.renderHtml = function(html_code) { return $sce.trustAsHtml(html_code); }; HTML: <p ng-bind-html=”renderHtml(value.button)”></p>
Ok I found solution for this: JS: $scope.renderHtml = function(html_code) { return $sce.trustAsHtml(html_code); }; HTML: <p ng-bind-html=”renderHtml(value.button)”></p>
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()