Update Crawler.php

If HTML is not well-formed XML parsing goes wrong.
This commit is contained in:
Giacomo Gallico 2013-05-07 14:27:06 +03:00
parent 758e886267
commit 0a266419b8

View File

@ -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;