Showing posts with label Show Trusted HTML. Show all posts
Showing posts with label Show Trusted HTML. Show all posts

Monday, February 22, 2016

Show trusted HTML in AngularJS

angular.module('myAngApp.filters', []).
filter("sanitize", ['$sce', function($sce) {
  return function(htmlCode){
    return $sce.trustAsHtml(htmlCode);
  }
}]);

JavaScript Related Questions & Answers

1.What is JavaScript? JavaScript is a client-side as well as server side scripting language that can be inserted into HTML pages an...