Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3bea05d

Browse files
committed
documented Crawler::html()
1 parent 80a0264 commit 3bea05d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

components/dom_crawler.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,11 @@ and :phpclass:`DOMNode` objects:
200200
$html .= $domElement->ownerDocument->saveHTML($domElement);
201201
}
202202

203+
Or you can get the HTML of the first node using
204+
:method:`Symfony\\Component\\DomCrawler\\Crawler::html`::
205+
206+
$html = $crawler->html();
207+
203208
Form and Link support
204209
~~~~~~~~~~~~~~~~~~~~~
205210

0 commit comments

Comments
 (0)