JSFiddle - React, Tailwind, and code Playground

by mattdlockyer

HTML

<div id="test"></div>

JavaScript

$('#test').text($('<div><p>Some</p>Inner<div>Text</div></div>'.replace(/</g, ' <')).text());