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: Escape markup in poll options #379

Merged
merged 2 commits into from
Jul 16, 2023
Merged

fix: Escape markup in poll options #379

merged 2 commits into from
Jul 16, 2023

Conversation

majormajors
Copy link
Contributor

Poll option titles can currently be interpreted as html, causing them to be displayed incorrectly at times. This is inconsistent with other Mastodon/ActivityPub clients. All documentation on how poll options should be formatted also seems to point to them only ever being plain text.

This small change escapes characters that can be interpreted as markup when rendering polls.

Before:
screenshot_2023-07-14T09:13:48

After:
screenshot_2023-07-14T09:11:44

@majormajors majormajors changed the title Escape markup in poll options fix: Escape markup in poll options Jul 14, 2023
@GeopJr
Copy link
Owner

GeopJr commented Jul 14, 2023

Nice catch & thanks! Instead of escaping it, I disabled markup

@GeopJr GeopJr merged commit fd5aa32 into GeopJr:main Jul 16, 2023
5 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.

2 participants