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

Content will be cut with multiple body tags #362

Open
stefan377 opened this issue Jan 23, 2023 · 1 comment
Open

Content will be cut with multiple body tags #362

stefan377 opened this issue Jan 23, 2023 · 1 comment

Comments

@stefan377
Copy link

The following string will result in "cars", the word "houses" will be cut off.

<html><body>cars</body></html> <html><body>houses</body></html>

I know it's not valid html, but saw this today in a email. The html body of the email contained multiple html and body tags. So most of the email body was cut off by the purifier.

@ezyang
Copy link
Owner

ezyang commented Jan 23, 2023

an easy hotfix is to regex so that html/body tags are removed

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