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

HTML tag whitelisting & attribute blacklisting #4

Open
grugnog opened this issue Jan 1, 2015 · 0 comments
Open

HTML tag whitelisting & attribute blacklisting #4

grugnog opened this issue Jan 1, 2015 · 0 comments

Comments

@grugnog
Copy link
Owner

grugnog commented Jan 1, 2015

This should be configurable through the Mangle struct, with sensible defaults.

Currently text inside every tag is mangled, however some tags such as script should normally be skipped via a whitelist approach.

Conversely, right now no attributes are mangled, however specific attributes should be via a blacklist approach - for example alt and title. Could be "tag wide", or "tag specific" (img.alt) configuration - need to look at spec and decide if a broad approach could work.

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