merged branch spil-giacomo/patch-1 (PR #7963)
This PR was merged into the master branch.
Discussion
----------
Update Crawler.php
If HTML is not well-formed XML parsing goes wrong.
Could be useful create another method returning XML and XHTML in a `well-formed` standard?
Commits
-------
0a26641
Update Crawler.php
This commit is contained in:
commit
cbfab7ab06
|
@ -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