JSFiddle - React, Tailwind, and code Playground

by joshmoto

HTML

<div id='tst'>test</div>

JavaScript

var myContent = '<div id="test">Hello <span>world!</span></div>';

$('#tst').html($(myContent).text());