From 39e682dfd2460e3616d659689c12521ef41e2dff Mon Sep 17 00:00:00 2001 From: slawkens Date: Thu, 16 May 2024 18:58:54 +0200 Subject: [PATCH] htmlspecialchars seems to be better here (?) --- system/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/functions.php b/system/functions.php index 2b8b03642..70c0b93e7 100644 --- a/system/functions.php +++ b/system/functions.php @@ -1634,7 +1634,7 @@ function removeIfFirstSlash(&$text) { }; function escapeHtml($html) { - return htmlentities($html, ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8'); + return htmlspecialchars($html); } function getGuildNameById($id)