A DOM CSS selector engine
Pluck uses Symfony's CSS-Selector for converting CSS selectors to XPath queries. Please ensure you have this package available. If you're using composer your standard composer install
should fetch it as a requirement.
$html = <<<EOD
<!DOCTYPE html>
<html>
<body>
<a class="button" href="#">Hello There</a>
</body>
</html>
EOD;
$dom = new Pluck\Document($html);
$dom->find('a.button')->remove();
- Finish Documentation
- Write Tests
- While this library does not try to mimic jQuery, it will surely always be inspired by it.