Skip to content

Commit 7a74a76

Browse files
authored
Normalize behavior of "getText" method (#182)
Normalize behavior of "getText" method
1 parent aed87e4 commit 7a74a76

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/BrowserKitDriver.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -334,9 +334,7 @@ public function getTagName(string $xpath)
334334
*/
335335
public function getText(string $xpath)
336336
{
337-
$text = $this->getFilteredCrawler($xpath)->text(null, true);
338-
339-
return $text;
337+
return str_replace("\xc2\xa0", ' ', $this->getFilteredCrawler($xpath)->text(null, true));
340338
}
341339

342340
/**

0 commit comments

Comments
 (0)