Hello I am using simple_html_dom to find every link in the html document that is of the class "new". Ordinarily I would use:
$html->find('a[class=new]');
This would obtain links such as e.g.
<a class="new" ... blah blah ... />
Hoever the problem this time is that the html document contains links with classes such as
<a class="today new".../>
<a class="alksdjld new kfljslfd".../>
Basically lots of other links with the word new in it. The online manual says [class^=new] will partially solve this because it sorts for classes that START with new and that does work. but that still leaves classes like "new blah blah etc"
Hope that makes sense. Has anyone encountered this/solved this?