8000 merged branch spil-giacomo/patch-1 (PR #7963) · symfony/symfony@cbfab7a · GitHub
[go: up one dir, main page]

Skip to content

Commit cbfab7a

Browse files
committed
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
2 parents 1da4361 + 0a26641 commit cbfab7a

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);
502+
$html .= $child->ownerDocument->saveHTML($child);
503503
}
504504

505505
return $html;

0 commit comments

Comments
 (0)
0