From 3bea05dd6bde032a7a145f7b43d14e07f8c141cc Mon Sep 17 00:00:00 2001 From: Pavel Volokitin Date: Sun, 5 May 2013 10:40:55 +0600 Subject: [PATCH] documented Crawler::html() --- components/dom_crawler.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/dom_crawler.rst b/components/dom_crawler.rst index 2a8985e4a75..0348d8afcf7 100644 --- a/components/dom_crawler.rst +++ b/components/dom_crawler.rst @@ -200,6 +200,11 @@ and :phpclass:`DOMNode` objects: $html .= $domElement->ownerDocument->saveHTML($domElement); } + Or you can get the HTML of the first node using + :method:`Symfony\\Component\\DomCrawler\\Crawler::html`:: + + $html = $crawler->html(); + Form and Link support ~~~~~~~~~~~~~~~~~~~~~