JSFiddle - React, Tailwind, and code Playground

HTML

<div id="description">
TEXT I WANT REMOVED
<p>Keep this text</p>
<p>Keep this too</p>
</div>

CSS

div{color:blue;}
p{color:red;}

JavaScript

var html = $('#description p').map(function(){
return $(this)[0].outerHTML;
}).get();

$('#description').html(html);