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 ~~~~~~~~~~~~~~~~~~~~~
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: