class CssSelectorConverter
CssSelectorConverter is the main entry point of the component and can convert CSS selectors to XPath expressions.
__construct(bool $html = true) | ||
string | toXPath(string $cssExpr, string $prefix = 'descendant-or-self::') Translates a CSS expression to its XPath equivalent. |
bool | $html | Whether HTML support should be enabled. Disable it for XML documents |
Translates a CSS expression to its XPath equivalent.
Optionally, a prefix can be added to the resulting XPath expression with the $prefix parameter.
string | $cssExpr | The CSS expression |
string | $prefix | An optional prefix for the XPath expression |
string |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/CssSelector/CssSelectorConverter.html