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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy