html5parser
html5parser copied to clipboard
allowing style attribute is not safe
CSS can be harmful and must be sanitized w/ e.g. cssfilter. It is not a safe default setting to allow the style
attribute.
https://github.com/acrazing/html5parser/blob/cc95ffc4b50d99e64a477eb34934113f2d0ca3c4/src/safeHtml.ts#L95
Can you specifically explain why css is not safe? It means that it will lead to disordered page styles?