JSFiddle - React, Tailwind, and code Playground
HTML
<div class="item">
<img src="http://mintywhite.com/images/wg/0904/05rssfeedicons/rss-feed-icons11.jpg"/>
TEXT NODE
<span class="some_class">What the funk?</span>
<form>What the monkey</form>
</div>
JavaScript
$('.item').contents().not('img').remove();