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 #249

Closed
wants to merge 2 commits into from
Closed

Do not strip html by default #249

wants to merge 2 commits into from

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 self-assigned this Dec 11, 2017
@danmactough
Copy link
Owner Author

This will be a semver major change.

@danmactough
Copy link
Owner Author

closing this and cutting a v3.0.0-pre branch including this change

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