JSFiddle - React, Tailwind, and code Playground

HTML

<div id="tag">hi there</div>

JavaScript

alert('html content is:' + $('#tag').html());