ng-bind-html removing style

0

I'm trying to pass a style into a span, but when I use ng-bing-html it removes

In the json that is placed on the page up to this with style

<script id="data" type="application/json" product-data>
<p><span style=\"color: #ff0000;\">PEDIDO M&Iacute;NIMO:&nbsp;10 UNIDADES&nbsp;<\/span><\/p>

More when using

        <div itemprop="description" ng-bind-html="product.summary"></div>

Result on page

<p><span>PEDIDO MÍNIMO:&nbsp;10 UNIDADES&nbsp;</span></p>
    
asked by anonymous 31.08.2016 / 19:01

1 answer

1

Try to use $sce.trustAsHtml() in the controller, not to lose CSS.

    
31.08.2016 / 21:58