From 3ab29ec26e79727c72ea41517dbfbba60799138c Mon Sep 17 00:00:00 2001 From: ModMaker101 <119018978+ModMaker101@users.noreply.github.com> Date: Sun, 26 Apr 2026 13:22:51 -0400 Subject: [PATCH] Remove HTML escape for apostrophe in chat (#1541) Fixes #1537 --- Minecraft.Client/Common/Consoles_App.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Minecraft.Client/Common/Consoles_App.cpp b/Minecraft.Client/Common/Consoles_App.cpp index f733fd439..c7fe15d14 100644 --- a/Minecraft.Client/Common/Consoles_App.cpp +++ b/Minecraft.Client/Common/Consoles_App.cpp @@ -6599,13 +6599,12 @@ wstring CMinecraftApp::FormatHTMLString(int iPad, const wstring &desc, int shado //found list of html escapes at https://stackoverflow.com/questions/7381974/which-characters-need-to-be-escaped-in-html wstring CMinecraftApp::EscapeHTMLString(const wstring& desc) { - static std::unordered_map replacementMap = { - {L'&', L"&"}, - {L'<', L"<"}, - {L'>', L">"}, - {L'\"', L"""}, - {L'\'', L"'"}, - }; + static std::unordered_map replacementMap = { + {L'&', L"&"}, + {L'<', L"<"}, + {L'>', L">"}, + {L'\"', L"""}, + }; wstring finalString = L""; for (int i = 0; i < desc.size(); i++) {