HI i dont want to parse the span tag which is a child tag of from where i am extracting my data.....
Ex:- <a class="imp">
Some data 1 2 3
<span>
Unwanted Data
</span>
</a>
Code i am using:-
foreach($html->find(a.imp) as $value)
{
echo $value->innertext;
}
Output:-
Some data 1 2 3
Unwanted Data...
Desired output:-
Some data 1 2 3
I really dont knw is there any function or way so that i cant include the child tags ???