fix(CssSelector): html entity decode bug, fix #4484 (#4547)

This commit is contained in:
Dag 2025-05-09 03:26:10 +02:00 committed by GitHub
parent 66f1d449a7
commit 83edf5a48b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -232,8 +232,10 @@ class CssSelectorBridge extends BridgeAbstract
continue; continue;
} }
} }
$item['uri'] = $link->href;
$item['title'] = $link->plaintext; $item['uri'] = html_entity_decode($link->href);
$item['title'] = html_entity_decode($link->plaintext);
if (isset($item['content'])) { if (isset($item['content'])) {
$item['content'] = convertLazyLoading($item['content']); $item['content'] = convertLazyLoading($item['content']);
$item['content'] = defaultLinkTo($item['content'], $item['uri']); $item['content'] = defaultLinkTo($item['content'], $item['uri']);