Hi there how can I get only selective text in this code whith simple php parser
<div class="body" style="text-align: justify;padding: 10px;">
<a class="entekhab_lead2" href="/"> other text : </a>
<br> I want this text <br>
<div align="justify"> other text or elements <div>
<div> other text or elemnets </div>
and anything else....
</div>
I want just return this: I want this text
I try this
foreach($html->find('div') as $element)
echo $element->plaintext . '<br>';
but it print every text.