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

Skip to content

Commit c9b65d0

Browse files
committed
Merge pull request #2602 from pvolok/crawler_html
[2.3] Document Crawler::html method
2 parents 4542e06 + 3bea05d commit c9b65d0

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)