Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better style sanitizing #16

Open
fluffy-critter opened this issue Mar 1, 2019 · 0 comments
Open

Better style sanitizing #16

fluffy-critter opened this issue Mar 1, 2019 · 0 comments

Comments

@fluffy-critter
Copy link
Owner

Certain web CMSes (*cough* Publ *cough*) make use of style attributes in ways that tend to break some things when they're completely filtered out. But we don't want every possible style to be whitelisted. It's a good idea to parse out the CSS rules (which is a pain) and only allow in certain whitelisted ones, like background-image, border-shape, and float/clear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant