JSFiddle - React, Tailwind, and code Playground
HTML
<textarea id="editor"></textarea>
JavaScript
$("#editor").html($("<div>").text("<div>a value</div>").html());
<textarea id="editor"></textarea>
$("#editor").html($("<div>").text("<div>a value</div>").html());