Sanitizing CSS
- Why does CSS Sanitization happening with properties in CSSSchema for style attribute is not happening when we do allowTextIn("style") ?
- If that's intentional, Is there a way to disallow particular property inside style tag for example : background-url?
We can write a preprocessor but i think, CssGrammar where we do sanitization is package specific. Is it a right way to sanitize css in
@mikesamuel @jmanico
@Dashlet26 If I am not wrong customizing CSS Schema doesn't have effect in
Apologies for my previous answer sticking with this one allowStyling() API and its whitelisting they are specially used for style attributes . Customizing CSS Schema may not have an effect in
@Dashlet26 , Sorry but that's the question. I understand allowStyling() is used for attributes and that's why I replied for the earlier suggestion of customizing CSS Schema.