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

add an HTML5 sanitizer vendor for Rails to integrate with #162

Merged
merged 2 commits into from May 17, 2023

Conversation

flavorjones
Copy link
Member

Rails integrates with rails-html-sanitizer through a "vendor", which is an object that provides methods to return classes for "full", "link", and "safe list" sanitizers.

Previously, that class is Rails::Html::Sanitizer, but this PR adds Rails::HTML5::Sanitizer which will return the HTML5 variations of those sanitizers (see #158).

Also add HTML4::Sanitizer for symmetry, which returns the exact same
set of sanitizers as HTML::Sanitizer.
@flavorjones flavorjones force-pushed the flavorjones-html5-sanitizer-vendor branch from 6334dee to 8ea2500 Compare May 17, 2023 16:18
@flavorjones flavorjones merged commit 2b0dcb5 into main May 17, 2023
13 checks passed
@flavorjones flavorjones deleted the flavorjones-html5-sanitizer-vendor branch May 17, 2023 17:48
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.

None yet

2 participants