We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e4b85b commit 4417f13Copy full SHA for 4417f13
components/dom_crawler.rst
@@ -230,8 +230,8 @@ Access the value of the first node of the current selection::
230
// pass FALSE as the second argument to return the original text unchanged
231
$crawler->filterXPath('//body/p')->text('Default text content', false);
232
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
+ // innerText() is similar to text() but only returns the text that is
+ // the direct descendant of the current node, excluding any child nodes
235
$text = $crawler->filterXPath('//body/p')->innerText();
236
// if content is <p>Foo <span>Bar</span></p>
237
// innerText() returns 'Foo' and text() returns 'Foo Bar'
0 commit comments