php-html-parser
php-html-parser copied to clipboard
Query class and attribute selector
Good evening, is it possible to search for class + attribute?
Example: .className[data-point]
same question, but to search value of <meta name="description" content="text">
How to find text of this meta tag?
Resolved:
$metas = $dom->find("meta[name='description']"); echo $metas->getAttribute('content');