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

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