Sanitize css

CSS library that corrects broken and missing styles in all browsers. It’s developed alongside normalize. The best-practices CSS foundation.

I just recently came across sanitize. So of course I got curious as to why the co-author . Minimal CSS normalization library – cdnjs. The best FOSS CDN for web related libraries to speed up your websites!

OWASP AntiSamy can perform CSS stylesheet validation; I haven’t tried that feature in particular though. Also, I’m not sure if it fits your bill of . In keeping with our commitments and contributions to important open source projects, we’re proud to take on stewardship of sanitize. CSS library that corrects broken and missing styles in all browsers, preserving useful defaults rather than unstyling everything.

Sanitizes the given Crass CSS parse tree and all its children, modifying it in place. It’s a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: .