From 1718452efbf29920a727b6978aee07f9e51a5a9e Mon Sep 17 00:00:00 2001 From: SillyLossy Date: Thu, 20 Apr 2023 17:10:57 +0300 Subject: [PATCH] Fix code block parsing #116 --- public/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/script.js b/public/script.js index b9186c28f..3a6cb7a15 100644 --- a/public/script.js +++ b/public/script.js @@ -878,7 +878,7 @@ function messageFormating(mes, ch_name, isSystem, forceAvatar) { mes = mes.replace(/\n/g, "
"); mes = mes.trim(); - mes = mes.replace(/[\s\S]*?<\/code>/g, function (match) { + mes = mes.replace(/[\s\S]*?<\/code>/g, function (match) { return match.replace(/&/g, '&'); }); }