Answer : the short answer is no. I have never encountered such a configuration. You cannot get {{{}}} to work in Angular.
Useful workaround . It is not possible to get unescaped / unsanitized HTML into a view through a scope without using the ng-bind-html directive. You can add either a helper function to the controller or add a filter that can make it a bit easier to use ng-bind-html ( Plunk here ), but you still need ng-bind-html:
var app = angular.module('plunker', ['ngSanitize']); app.controller('MyController', function($scope, $sce) { $scope.someHtmlContent = "Label: <input name='test'>"; $scope.h = function(html) { return $sce.trustAsHtml(html); }; }); app.filter('trustAsHtml', function($sce) { return $sce.trustAsHtml; });
Then you will use it as follows:
<body ng-controller="MyController"> <div ng-bind-html="someHtmlContent | trustAsHtml"> </div> <div ng-bind-html="h(someHtmlContent)"> </div> </body>
source share