8000 Update Crawler.php · symfony/symfony@0a26641 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0a26641

Browse files
committed
Update Crawler.php
If HTML is not well-formed XML parsing goes wrong.
1 parent 758e886 commit 0a26641

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/DomCrawler/Crawler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ public function html()
499499

500500
$html = '';
501501
foreach ($this->getNode(0)->childNodes as $child) {
502-
$html .= $child->ownerDocument->saveXML($child);
< 4E30 /code>
502+
$html .= $child->ownerDocument->saveHTML($child);
503503
}
504504

505505
return $html;

0 commit comments

Comments
 (0)
0