I'm trying to insert an HTML code from string into angular view, but all style attributes are being removed from the HTML
In the Controller:
$scope.htmlString = '<div style="height:40px;"></div><div style="height:40px;"></div><div style="height:40px;"></div>'
View:
<div ng-bind-html="htmlString"></div>
The result I'm getting is always the HTML without style attributes.
<div></div><div></div><div></div>
I have tried using ng-bind-html-unsafe directive with no success.
I appreciate any help.