From 6f3019ecdd670a26e8e6952ecd307eef84ab2a7e Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 19 May 2019 09:34:49 +0000 Subject: [PATCH] Revert PR 7158 since it breaks umlauts --- src/Util/XML.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Util/XML.php b/src/Util/XML.php index 3159fb95e9..476ecb4b00 100644 --- a/src/Util/XML.php +++ b/src/Util/XML.php @@ -471,7 +471,7 @@ class XML */ public static function escape($str) { - $buffer = htmlentities($str, ENT_QUOTES, 'UTF-8'); + $buffer = htmlspecialchars($str, ENT_QUOTES, 'UTF-8'); $buffer = trim($buffer); return $buffer; @@ -485,7 +485,7 @@ class XML */ public static function unescape($s) { - $ret = html_entity_decode($s, ENT_QUOTES); + $ret = htmlspecialchars_decode($s, ENT_QUOTES); return $ret; } -- 2.39.5