Skip to content

Commit 54df2e0

Browse files
dostenweaverryan
authored andcommitted
Updated dom_crawler.rst
1 parent 3ba6ca5 commit 54df2e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/dom_crawler.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ Extract attribute and/or node values from the list of nodes::
138138
Call an anonymous function on each node of the list::
139139

140140
$nodeValues = $crawler->filter('p')->each(function ($node, $i) {
141-
return $node->nodeValue;
141+
return $node->text();
142142
});
143143

144144
The anonymous function receives the position and the node as arguments.

0 commit comments

Comments
 (0)