class CssSelector
deprecated
as of 2.8, will be removed in 3.0. Use the \Symfony\Component\CssSelector\CssSelectorConverter class instead.
CssSelector is the main entry point of the component and can convert CSS selectors to XPath expressions. $xpath = CssSelector::toXpath('h1.foo'); This component is a port of the Python cssselect library, which is copyright Ian Bicking, see https://github.com/SimonSapin/cssselect. Copyright (c) 2007-2012 Ian Bicking and contributors. See AUTHORS for mo