JSFiddle - React, Tailwind, and code Playground
HTML
<textarea id="myText"><b><p>TEST</p></b></textarea>
<button id="button1">Get1</button>
<button id="button2">Get2</button>
JavaScript
$( "#button1" ).click(function()
{
alert( $("#myText").html() );
});
$( "#button2" ).click(function()
{
alert( $("#myText").val() );
});