File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -220,8 +220,9 @@ Access the value of the first node of the current selection::
220220 // avoid the exception passing an argument that text() returns when node does not exist
221221 $message = $crawler->filterXPath('//body/p')->text('Default text content');
222222
223- // pass false as the second argument of text() to not remove all extra white spaces, including
224- // the internal ones (e.g. " foo\n bar baz \n " is returned as "foo bar baz")
223+ // by default, text() trims white spaces, including the internal ones
224+ // (e.g. " foo\n bar baz \n " is returned as "foo bar baz")
225+ // pass FALSE as the second argument to return the original text unchanged
225226 $crawler->filterXPath('//body/p')->text('Default text content', false);
226227
227228Access the attribute value of the first node of the current selection::
You can’t perform that action at this time.
0 commit comments