Skip to content

Remove HTML escape for apostrophe in chat #1537#1541

Merged
codeHusky merged 1 commit intoMCLCE:mainfrom
ModMaker101:fix/apostrophe-chat-1537
Apr 26, 2026
Merged

Remove HTML escape for apostrophe in chat #1537#1541
codeHusky merged 1 commit intoMCLCE:mainfrom
ModMaker101:fix/apostrophe-chat-1537

Conversation

@ModMaker101
Copy link
Copy Markdown
Contributor

Description

Removed HTML escaping for apostrophe chars in chat.

Changes

Previous Behavior

Chat messages containing ' were being converted to the HTML version of ', which displayed it literally in chat instead of showing an apostrophe.

Root Cause

The EscapeHTMLString was incorrectly escaping single quotes. Single quotes do NOT need to be escaped in HTML.

New Behavior

Chat messages now show the apostrophes normally.

Fix Implementation

Removed {L'\''...} from the replacementMap in the EscapeHTMLString.

AI Use Disclosure

No AI used.

Related Issues

image

Oh, and I think ReSharper auto formatted the replacementMap so that's why Git is freaking out.

@DrPerkyLegit
Copy link
Copy Markdown
Contributor

thanks for this, i was meant to get around to it but forgot

@codeHusky codeHusky merged commit 3ab29ec into MCLCE:main Apr 26, 2026
1 check 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.

[Bug] Apostrophe is broken in chat.

3 participants