Skip to content

Commit

Permalink
Update Crawler.php
Browse files Browse the repository at this point in the history
If HTML is not well-formed XML parsing goes wrong.
  • Loading branch information
spil-giacomo committed May 7, 2013
1 parent 758e886 commit 0a26641
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/DomCrawler/Crawler.php
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ public function html()

$html = '';
foreach ($this->getNode(0)->childNodes as $child) {
$html .= $child->ownerDocument->saveXML($child);
$html .= $child->ownerDocument->saveHTML($child);
}

return $html;
Expand Down

0 comments on commit 0a26641

Please sign in to comment.