you need to use $sce.trustAsHtml... so ng-bind-html="trustAsHtml()" in html
and in controller
$scope.trustAsHtml = function(html){
return $sce.trustAsHtml(html);
}
or better yet create your own $compile directive such as :
app.directive('ngHtmlCompile',function ($compile) {
return function(scope, element, attrs) {
scope.$watch(
function(scope) {
// watch the 'compile' expression for changes
return scope.$eval(attrs.ngHtmlCompile);
},
function(value) {
// when the 'compile' expression changes
// assign it into the current DOM
element.html(value);
// compile the new DOM and link it to the current
// scope.
// NOTE: we only compile .childNodes so that
// we don't get into infinite loop compiling ourselves
$compile(element.contents())(scope);
}
);
};
});
and then use it like so :
<span ng-html-compile="html"></span>
EDIT - made minor fix
here is a jsfiddle showing the code