I'm using simple_html_dom in PHP to get all A-tags inside a html page. But some tags are inside a div that should be ignored.
I guess I need something like :
$htmldom->find("!div[class=blabla] a");
I found that I can use [attribute!=value]
to specify elements that do NOT have a certain attrib开发者_开发百科ute value, but how would this work for elements?
You basically had it:
$htmldom->find("[class!=blabla] a");
精彩评论