I have this HTML code:
<div class ="lvlone">
<div class = "lvltwo"> Hello
<span>World</span>
</div>
</div>
I do this:$res = $xpath->query(//div[@class='lvlone']/div[@class='lvltwo']);
I get Hello World
including the string in <span>
tag but i down want it!
I only want the Hello
.
What can i do ?
Thanks!