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

Do not strip html by default #264

Merged
merged 3 commits into from
Jul 15, 2018
Merged

Do not strip html by default #264

merged 3 commits into from
Jul 15, 2018

Conversation

danmactough
Copy link
Owner

In older versions, we always stripped html-like substrings in certain elements to help users avoid inadvertently creating XSS vulnerabilities by reflecting the value of these elements without properly escaping them. We decided that wasn't particularly helpful because the simple sanitation we were performing didn't address all cases. It also did a poor job of sanitizing.

This removes that html stripping by default and adds the option strip_html to restore the old behavior.

Resolves #165, #243

@danmactough danmactough merged commit 72e6cae into v3.0.0 Jul 15, 2018
@danmactough danmactough deleted the no-strip-html branch July 15, 2018 21:08
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

Successfully merging this pull request may close these issues.

1 participant