I have in my page one html like this:
<li class=category><a href="#" rel="category name">WHAT I WANT</a></li>
<li class=name><a href="#" rel="name">name</a></li>
<li class=date><a href="#" rel="date">date</a></li>
I need to get the WHAT I WANT
value.
So I tried:
$linkss = $d->getElementsByTagName('a');
$cat = $linkss->item(0)->getAttribute('category name');
but it is not working... Any ideas why? How can I get just the What I want inside the href rel category name
?