File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -226,8 +226,8 @@ Access the value of the first node of the current selection::
226
226
// pass FALSE as the second argument to return the original text unchanged
227
227
$crawler->filterXPath('//body/p')->text('Default text content', false);
228
228
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
231
231
$text = $crawler->filterXPath('//body/p')->innerText();
232
232
// if content is <p>Foo <span>Bar</span></p>
233
233
// innerText() returns 'Foo' and text() returns 'Foo Bar'
You can’t perform that action at this time.
0 commit comments