Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc9b65d0

Browse files
committed
Merge pull requestsymfony#2602 from pvolok/crawler_html
[2.3] Document Crawler::html method
2 parents4542e06 +3bea05d commitc9b65d0

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)

[8]ページ先頭

©2009-2025 Movatter.jp