Skip to content

Commit b139fb0

Browse files
committed
Merge branch '5.4' into 6.0
* 5.4: [DomCrawler] Fix typo
2 parents 6f002da + 4417f13 commit b139fb0

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
@@ -226,8 +226,8 @@ Access the value of the first node of the current selection::
226226
// pass FALSE as the second argument to return the original text unchanged
227227
$crawler->filterXPath('//body/p')->text('Default text content', false);
228228

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

0 commit comments

Comments
 (0)