I am trying to render a text as html using ng-bind as the docs show
The problem is that Angular removes the style attribute and renders this:
How to render as html and keep the styles? I am using Angular version 1.2.6
You may try this function when you're doing
ng-bind-html in your controller
$sce.trustAsHtml('myHTML'); //$sce would be the parameter with $scope in module
Hope this will work
This recipe can be found in it's original form on Stack Over Flow.