Skip to content
This repository has been archived by the owner on Aug 29, 2024. It is now read-only.

fix: escaping ampersand and backtick characters #38

Merged
merged 1 commit into from
Jun 7, 2024

Conversation

gentlementlegen
Copy link
Member

Relates to ubiquity/pay.ubq.fi#227 (comment) not being displayed properly.

@gentlementlegen gentlementlegen merged commit 6c2a91a into ubiquibot:main Jun 7, 2024
@gentlementlegen gentlementlegen deleted the fix/escape-html branch June 7, 2024 04:33
.replaceAll("<", "&lt;")
.replaceAll(">", "&gt;")
.replaceAll("`", "&#96;")
.substring(0, 64)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why 64? What is this for

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was there before, it's actually your code lol. It's to cut comments at 64 characters I believe.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants