JSFiddle - React, Tailwind, and code Playground
HTML
<div id="divhtml">
<span>This is span text</span><br/>
This is not span text<br/>
<span>This is span text</span><br/>
This is not span text<br/>
<span>This is span text</span><br/>
This is not span text<br/>
</div>
JavaScript
$(function() {
$("#divhtml").find("span").remove();
});