I have the following html fragment.
<p class="price">
£5022.2
<span class="sub-price tax-price">(£126.68nbsp;incl VAT)</span>
</p>
Is there a way to just target the £5022.2 from the above html fragment ?
If i target the class price and the text it targets the text that is a part of the span tag too