I have the following which is fine, it does convert the <p>
tags into <br>
and wrap the whole text in a <p>
. however I am seeing the html tags <p>
and <br>
inside the text area, how can I only see the line breaks without to see the html tags in it?
<textarea id ="usp-content"><textarea>
$(blurbt).find('p').each(function(){
$( this ).replaceWith( $( this ).text() + "<br/>" );
});
$(blurbt).wrapInner("<p></p>");
var pOnly = $(blurbt).html();
$('#usp-content').text(pOnly);
I'd simply would like to paste the plain text while keeping the line breaks visually not with the <br>