You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the current implementation this line in the compileHtml function strips out all class and style attributes.
var compHtml = angular.element("<div>").append(html).html().replace(/(class="(.*?)")|(class='(.*?)')/g, "").replace(/</g, "<").replace(/>/g, ">").replace(/style=("|')(.*?)("|')/g, "");
To me this seems a little too draconian as it means that if I am in raw html view I can't use something like: <p class='highlight'></p> as the class attribute is stripped out. This seems a little counterproductive to my mind, what was the reasoning behind this?
The text was updated successfully, but these errors were encountered:
The primary reason for not supporting attributes (primarily the style attribute) is the fact that chrome currently adds some superficial line-height properties to various elements.
Since we cannot easily discern which of these are added at what given time, I've decided to remove the ability entirely.
In the current implementation this line in the compileHtml function strips out all class and style attributes.
To me this seems a little too draconian as it means that if I am in raw html view I can't use something like:
<p class='highlight'></p>
as the class attribute is stripped out. This seems a little counterproductive to my mind, what was the reasoning behind this?The text was updated successfully, but these errors were encountered: