From 70d580279301ef0be094b2ee292a1f96c17695b1 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 28 Mar 2021 11:32:26 +0000 Subject: [PATCH] Avoid HTML in ParseUrl desriptions --- src/Util/ParseUrl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Util/ParseUrl.php b/src/Util/ParseUrl.php index 0ba0bc2711..dc5648dd7e 100644 --- a/src/Util/ParseUrl.php +++ b/src/Util/ParseUrl.php @@ -714,7 +714,7 @@ class ParseUrl array_walk_recursive($siteinfo, function (&$element) { if (is_string($element)) { - $element = html_entity_decode($element, ENT_COMPAT, 'UTF-8'); + $element = trim(strip_tags(html_entity_decode($element, ENT_COMPAT, 'UTF-8'))); } });