From: Michael Date: Sun, 19 May 2019 09:34:49 +0000 (+0000) Subject: Revert PR 7158 since it breaks umlauts X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6f3019ecdd670a26e8e6952ecd307eef84ab2a7e;p=friendica.git Revert PR 7158 since it breaks umlauts --- 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; }