There was an error while loading. Please reload this page.
1 parent 259b9fd commit 351e9c6Copy full SHA for 351e9c6
src/Traits/ManipulationTrait.php
@@ -109,7 +109,7 @@ protected function nodesFromHtml($html): NodeList {
109
$class = get_class($this->document());
110
$doc = new $class();
111
$doc->setEncoding($this->document()->getEncoding());
112
- $nodes = $doc->html($html)->find('body > *');
+ $nodes = $doc->html($html)->find('body')->contents();
113
114
return $nodes;
115
}
0 commit comments