JSFiddle - React, Tailwind, and code Playground
HTML
<div id="content">
<p>hello world</p>
<p>this is a paragraph</p>
</div>
JavaScript
alert($("#content").text()); // try it with FF and IE
<div id="content">
<p>hello world</p>
<p>this is a paragraph</p>
</div>
alert($("#content").text()); // try it with FF and IE