diff --git a/components/dom_crawler.rst b/components/dom_crawler.rst index 517a3dbb98b..4b122f6fc28 100644 --- a/components/dom_crawler.rst +++ b/components/dom_crawler.rst @@ -190,7 +190,7 @@ and :phpclass:`DOMNode` objects: $html = ''; foreach ($crawler as $domElement) { - $html.= $domElement->ownerDocument->saveHTML(); + $html .= $domElement->ownerDocument->saveHTML($domElement); } Form and Link support