Merge pull request #10098 from annando/parseurl-html

ParseUrl: Avoid HTML in returned content
This commit is contained in:
Hypolite Petovan 2021-03-28 09:51:00 -04:00 committed by GitHub
commit cefeb02517
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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')));
}
});