From b0a0e90d6eb4cd4b255259b513c4b066430ee567 Mon Sep 17 00:00:00 2001 From: Pavel Volokitin Date: Fri, 15 Mar 2013 01:18:00 +0600 Subject: [PATCH 1/2] Fix DomCrawler html dumping example. --- components/dom_crawler.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/dom_crawler.rst b/components/dom_crawler.rst index 517a3dbb98b..83a73f64b5b 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 From 9e27f46abf97960a755ee5f15b81bfa33fc94d4b Mon Sep 17 00:00:00 2001 From: Pavel Volokitin Date: Fri, 15 Mar 2013 03:16:42 +0600 Subject: [PATCH 2/2] Add missing space in DomCrawler example. --- components/dom_crawler.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/dom_crawler.rst b/components/dom_crawler.rst index 83a73f64b5b..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($domElement); + $html .= $domElement->ownerDocument->saveHTML($domElement); } Form and Link support