JSFiddle - React, Tailwind, and code Playground

by evild70

HTML

<p>
Paragraph
</p>
<p>
&nbsp;
</p>
<p>
End
</p>

JavaScript

$('p').filter(function(){
   return !$.trim($(this).text());
}).remove();