I've got a page i want to parse that has overlapping tags like this
<div>
<p>
<strong>
<span>sometext</span>
<div> <- this tag is misplaced
</strong>
</p>
<- and should be here
</div>
The problem is there're more p tags to be parsed, but the parser thinks that it reached the end.
I need it to be parsed in the way i can access each p separately
$ar_w = $ar->find('div[itemprop=ar] p');
foreach ($ar_w as $para) {
//something
}
any ideas how to solve this?