From: Michael Date: Tue, 7 Jan 2020 22:00:39 +0000 (+0000) Subject: Fix: removed unneeded HTML escaping X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8e87c5f05f5934798f94b6074f03715a0e5e641c;p=friendica.git Fix: removed unneeded HTML escaping --- diff --git a/src/Content/Text/HTML.php b/src/Content/Text/HTML.php index a25883eb16..557e737096 100644 --- a/src/Content/Text/HTML.php +++ b/src/Content/Text/HTML.php @@ -336,8 +336,6 @@ class HTML $message = html_entity_decode($message, ENT_QUOTES, 'UTF-8'); - $message = str_replace(["<"], ["<"], $message); - // remove quotes if they don't make sense $message = preg_replace('=\[/quote\][\s]*\[quote\]=i', "\n", $message); diff --git a/src/Protocol/DFRN.php b/src/Protocol/DFRN.php index 798f607927..2202331b12 100644 --- a/src/Protocol/DFRN.php +++ b/src/Protocol/DFRN.php @@ -2365,7 +2365,7 @@ class DFRN $item["body"] = XML::getFirstNodeValue($xpath, "dfrn:env/text()", $entry); $item["body"] = str_replace([' ',"\t","\r","\n"], ['','','',''], $item["body"]); // make sure nobody is trying to sneak some html tags by us - $item["body"] = Strings::escapeTags(Strings::base64UrlDecode($item["body"])); + $item["body"] = Strings::base64UrlDecode($item["body"]); $item["body"] = BBCode::limitBodySize($item["body"]);