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:
Fabien Potencier 2013-05-10 17:42:47 +02:00
commit cbfab7ab06
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;