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

[bugfix] html escape special characters in text instead of totally removing them #719

Merged
merged 6 commits into from
Jul 19, 2022

Conversation

tsmethurst
Copy link
Contributor

This PR updates the text parsing logic for plaintext posts, to prevent totally removing text like <3 or <div> by accident.

Instead, text like this is html escaped before processing, and then sanitized again on the way out of processing to make sure nothing harmful slips through.

@tsmethurst tsmethurst changed the title [bugfix] html escape special characters in text [bugfix] html escape special characters in text instead of totally removing them Jul 19, 2022
@tsmethurst tsmethurst merged commit c84384e into main Jul 19, 2022
@tsmethurst tsmethurst deleted the text_formatting_updates branch July 19, 2022 13:21
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.

None yet

1 participant