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 = '';
|
$html = '';
|
||||||
foreach ($this->getNode(0)->childNodes as $child) {
|
foreach ($this->getNode(0)->childNodes as $child) {
|
||||||
$html .= $child->ownerDocument->saveXML($child);
|
$html .= $child->ownerDocument->saveHTML($child);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $html;
|
return $html;
|
||||||
|
Reference in New Issue
Block a user