JSFiddle - React, Tailwind, and code Playground
HTML
<div>
<p>This is a test string</p>
</div>
JavaScript
var myParagraph = $('div').html();
alert('here is the unstripped paragraph string: '+myParagraph);
var strippedParagraph = myParagraph.replace( new RegExp( "<p>", "gi" ),"").replace(new RegExp( "</p>", "gi" ),"");
alert('here is the stripped <p>s: '+strippedParagraph);