diff --git a/src/Utils/XPath/InaccurateText.php b/src/Utils/XPath/InaccurateText.php index a05022a..b45455e 100644 --- a/src/Utils/XPath/InaccurateText.php +++ b/src/Utils/XPath/InaccurateText.php @@ -86,7 +86,7 @@ public function __construct($query, NodeElement $parent = null) public function __toString() { if (!empty($this->text)) { - $this->text = "[starts-with(translate(normalize-space(.), ' ', ''), '$this->text')]"; + $this->text = "[starts-with(normalize-space(.), '$this->text')]"; } return sprintf("$this->query[%s$this->text]", empty($this->attribute) ? 'text()' : "@$this->attribute");