JSFiddle - React, Tailwind, and code Playground

by nickadeemus2002

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);