-
Notifications
You must be signed in to change notification settings - Fork 38
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
Minification of escape sequences produces invalid documents #109
Comments
This is intentional, and it's mentioned in the README that the minified output might not pass minification but still be correctly parsed by browsers. I might take a look into adding an option to prevent invalid entity representations. |
I have the same issue, and the minimal example:
Output: This caused the code to display unexpected content. |
In version |
Hi @wilsonzlin |
Python 3.10.5, minify-html 0.10.0 (pip install)
Hello. I might be doing it wrong, but I have encountered some issues with escape sequences, such as
<
. It seems that some of the minifications result in documents that are invalid according to https://validator.w3.orgMinimal valid input:
Output:
Another example:
Output:
In general, it would be nice if there was a configuration argument to preserve escape sequences.
The text was updated successfully, but these errors were encountered: