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
Should not escape HTML entities #43
Comments
Thanks for using it and reporting bugs!
|
@rennat Correct. That was a typo. I updated the description. I'm expecting that the lib would not convert HTML entities. Please elaborate if you disagree. The reason I have to preserve |
BeautifulSoup 4 doesn't offer the option to preserve HTML entities. It converts all of them to Unicode characters. See the pull request #45 for discussion. |
Hey everyone. Thought I'd pop into this discussion. https://www.crummy.com/software/BeautifulSoup/bs4/doc/#output-formatters You can use the soup to restore html entities after BS4 slurps up the input string via a formatter. I tested it with the OP's example, but, are there any edge cases that the formatter might not capture?
EDIT: In certain cases, this wouldn't be wanted if minified output is absolutely necessary. |
fixed in 0.7.2 |
First off, thank for the great library. Recently I upgraded the lib from
0.5.1
to0.7.1
and now it breaks my emails.How to reproduce
Expected
Actual
The text was updated successfully, but these errors were encountered: