Skip to content

Commit 4417f13

Browse files
committed
[DomCrawler] Fix typo
1 parent 6e4b85b commit 4417f13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/dom_crawler.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,8 @@ Access the value of the first node of the current selection::
230230
// pass FALSE as the second argument to return the original text unchanged
231231
$crawler->filterXPath('//body/p')->text('Default text content', false);
232232

233-
// innerText() is similar to text() but returns only the text that is
234-
// the direct descendent of the current node, excluding any child nodes
233+
// innerText() is similar to text() but only returns the text that is
234+
// the direct descendant of the current node, excluding any child nodes
235235
$text = $crawler->filterXPath('//body/p')->innerText();
236236
// if content is <p>Foo <span>Bar</span></p>
237237
// innerText() returns 'Foo' and text() returns 'Foo Bar'

0 commit comments

Comments
 (0)