XPath\Translator (Component\CssSelector)

Symfony\Component\CssSelector\XPath\Translator

class Translator implements TranslatorInterface

XPath expression translator interface.

This component is a port of the Python cssselect library, which is copyright Ian Bicking, see https://github.com/SimonSapin/cssselect.

Methods

__construct(ParserInterface $parser = null)

Constructor.

static string getXpathLiteral(string $element)
string