mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-09 00:24:15 +00:00
@@ -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
|
//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)
|
wstring CMinecraftApp::EscapeHTMLString(const wstring& desc)
|
||||||
{
|
{
|
||||||
static std::unordered_map<wchar_t, wchar_t*> replacementMap = {
|
static std::unordered_map<wchar_t, wchar_t*> replacementMap = {
|
||||||
{L'&', L"&"},
|
{L'&', L"&"},
|
||||||
{L'<', L"<"},
|
{L'<', L"<"},
|
||||||
{L'>', L">"},
|
{L'>', L">"},
|
||||||
{L'\"', L"""},
|
{L'\"', L"""},
|
||||||
{L'\'', L"'"},
|
};
|
||||||
};
|
|
||||||
|
|
||||||
wstring finalString = L"";
|
wstring finalString = L"";
|
||||||
for (int i = 0; i < desc.size(); i++) {
|
for (int i = 0; i < desc.size(); i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user