After use $sanitize
to my ng-html-bind
, all style was removed. But using $sce.trustAsHtml
cause secure issue.
So, is there any way to preserve color after $sanitize
?
For Example,
Original string
<p><span style="color: rgb(65, 140, 175);">blue</span></p>
After $sanitize
<p><span>blue</span></p>
The color is also auto removed by stackoverflow, for the example below:
blue