Angular JS: How to display a String variable in HTML
- Lucas
- November 06, 2016
Before version 1.2 of Angular JS it was possible to use the following directive: <p ng-bind-html-unsafe=”chamado.descricao”></p> However, this directive was removed in later versions for security reasons. How to display a variable in HTML without escaping the tags ? 1 – In your Controller pass the $scope and $sce variables. var MeuCtrl = function($scope, $sce)