You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when scraping a website that contains inlined svg graphics, the loadContent() function fails to apply the correct encoding as the <?xml version="1.0" encoding="UTF-8"?> of the inlined graphic is preventing adding of encoding header in
if (!$this->xml_mode && $encoding && stripos($content, '<?xml') === false) {
a quick fix would be to just rely on the already set $this->xml_print_pi property:
if (!$this->xml_print_pi && $encoding) {
$content = '<?xml encoding="'.$encoding.'">'.$content; // add pi node to make libxml use the correct encoding
$xml_pi_node_added = true;
}
The text was updated successfully, but these errors were encountered:
when scraping a website that contains inlined svg graphics, the
loadContent()
function fails to apply the correct encoding as the<?xml version="1.0" encoding="UTF-8"?>
of the inlined graphic is preventing adding of encoding header inDomQuery/src/Rct567/DomQuery/DomQueryNodes.php
Line 358 in 663dba0
a quick fix would be to just rely on the already set
$this->xml_print_pi
property:The text was updated successfully, but these errors were encountered: