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
1 changed files with 1 additions and 1 deletions

View File

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