From a81056d7e3f3d1f73d8df0cd816d4921f4cfa288 Mon Sep 17 00:00:00 2001 From: SillyLossy Date: Fri, 31 Mar 2023 15:58:40 +0300 Subject: [PATCH] Sex update --- public/script.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/script.js b/public/script.js index 543e3e3c0..02d7dfa3a 100644 --- a/public/script.js +++ b/public/script.js @@ -787,6 +787,10 @@ function messageFormating(mes, ch_name, isSystem, forceAvatar) { mes = mes.replace(/{.*}/g, ""); mes = mes.replace(/\n/g, "
"); mes = mes.trim(); + + mes = mes.replace(/[\s\S]*?<\/code>/g, function(match) { + return match.replace(/&/g, '&'); + }); } if (forceAvatar) {