I used to be able to use ng-bind-html-unsafe to output unsanitized code (because sanitization happens serverside).
ng-bind-html-unsafe
But now that option is gone? I know I
Simplest way, without $sce:
module.directive('html', function() { function link(scope, element, attrs) { var update = function() { element.html(scope.html); } attrs.$observe('html', function(value) { update(); }); } return { link: link, scope: { html: '=' } }; });
How to use: