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] Fix HTML escaping in instance title #607

Merged
merged 6 commits into from
May 26, 2022

Conversation

tsmethurst
Copy link
Contributor

This PR fixes an issue where text was being HTML escaped in instance titles during a PATCH to /api/v1/instance.

To do this, the PR rearranges some of the text formatting and sanitization logic. The text package now no longer exposes the RemoveHTML function, which was being used too much, and instead renames SanitizeCaption to SanitizePlaintext, and makes this function more widely used in places where plaintext and not HTML is required.

It also adds some tests for instance patching, to prove that this fixes the issue ;)

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.

1 participant