/** * Translates string to XPath literal. * * @param string $label label to escape * @return string escaped string. */ public static function escape($label) { if (empty(self::$escaper)) { self::$escaper = new \Behat\Mink\Selector\Xpath\Escaper(); } return self::$escaper->escapeLiteral($label); }