diff --git a/src/Util/Strings.php b/src/Util/Strings.php index 91b86fbfdc..7d6ed4836d 100644 --- a/src/Util/Strings.php +++ b/src/Util/Strings.php @@ -68,7 +68,7 @@ class Strings */ public static function escapeHtml($string) { - return htmlentities($string, ENT_QUOTES | ENT_HTML5, 'UTF-8', false); + return htmlspecialchars($string, ENT_COMPAT, 'UTF-8', false); } /**