Update Crawler.php
If HTML is not well-formed XML parsing goes wrong.
This commit is contained in:
parent
758e886267
commit
0a266419b8
@ -499,7 +499,7 @@ class Crawler extends \SplObjectStorage
|
||||
|
||||
$html = '';
|
||||
foreach ($this->getNode(0)->childNodes as $child) {
|
||||
$html .= $child->ownerDocument->saveXML($child);
|
||||
$html .= $child->ownerDocument->saveHTML($child);
|
||||
}
|
||||
|
||||
return $html;
|
||||
|
Reference in New Issue
Block a user