How would one select only the 'foo' text (and not the span) in this example?
<div class="bar">foo
<span>...</span>
</div>
Alternatively, what would your search query to figure this out be? I'm at a loss...
How would one select only the 'foo' text (and not the span) in this example?
<div class="bar">foo
<span>...</span>
</div>
Alternatively, what would your search query to figure this out be? I'm at a loss...
With JQuery & cheerio, it seems one can use :
$('div.bar').contents()[0]