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

Fix incomplete comments in safe mode not being escaped (#563) #564

Merged

Conversation

Crozzers
Copy link
Contributor

@Crozzers Crozzers commented Jan 3, 2024

This PR fixes #563 by amending the _incomplete_tags_re to also search for HTML comments. This change means that unclosed/incomplete HTML comments will be properly escaped and won't result in the rest of the document being commented out.

@nicholasserra
Copy link
Collaborator

Thank you!

@nicholasserra nicholasserra merged commit bb9d6b4 into trentm:master Jan 3, 2024
18 checks passed
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.

Unclosed HTML comments not being escaped with safe_mode='escape'
2 participants