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, '&');
});
}