From 2c2beb5c0abba87c1507a0c8432674d4025a5dc0 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Fri, 11 Oct 2019 22:19:20 -0400 Subject: [PATCH] Revert Util\Strings::escapeHtml changes from #7725 - Breaks display of inserted mentions --- src/Util/Strings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Util/Strings.php b/src/Util/Strings.php index 91b86fbfd..7d6ed4836 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); } /**