I've the following example HTML and looking to extract the text only from the a
tag excluding the inner span
tag.
<a href="#" class="rate">
<span>For Sale </span>
$450.00
</a>
Is there a way I can extract the $450 only using CSS Selectors. I tried to use .rate
and .rate:not(span)
but none of these working
**I'm looking for native CSS solutions only - Like using :not or some other. **