Im using simple html dom to parse html. https://simplehtmldom.sourceforge.io/
Given the following code
<div class="item-price offer-price price-tc default-price">
$129.990
<span class="discount-2">-35%</span>
</div>
How can I select just the price?
Im using $html->find(div.offer-price, 0)->plaintext;
but it selects the content of the span too.