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

Whitelist the HTML5 <main> element #133

Closed
MothOnMars opened this issue Nov 10, 2017 · 1 comment
Closed

Whitelist the HTML5 <main> element #133

MothOnMars opened this issue Nov 10, 2017 · 1 comment

Comments

@MothOnMars
Copy link
Contributor

MothOnMars commented Nov 10, 2017

I'd like content within the main element to be preserved. Currently, it's removed when scrubbing:

html = "<body>body<main>main</main></body>"
Loofah.fragment(html).scrub!(:whitewash)
# =>  <body>body</body>

Reference: https://www.w3schools.com/tags/tag_main.asp

@flavorjones
Copy link
Owner

Hi Martha,

Thanks for bringing this up! I can't think of any reason not to consider this. Let's continue the conversation in the PR.

flavorjones added a commit that referenced this issue Nov 12, 2017
Related to #133
Related to #134
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

2 participants