ng-bind-html-unsafe
was removed in Angular 1.2
I\'m trying to implement something where I need to use ng-bind-html-unsafe
. In the docs and
var line = "";
app.filter('unsafe', function($sce) { return $sce.trustAsHtml; });
using (html):
==>click `aaa` show alert box
include angular-sanitize.js
add ngSanitize
in root angular app
var app = angular.module("app", ["ngSanitize"]);
using (html):
==>click `aaa` nothing happen