JSFiddle - React, Tailwind, and code Playground

HTML

<div id="testme" style="display:none;"></div>
<span>this is the html</span>

JavaScript

alert($("#testme").html());