JSFiddle - React, Tailwind, and code Playground

by eddiemonge

HTML

<div id="hack"><script>alert("yo");</script></div>
    <div id="ohno"></div>

JavaScript

var $this = $('#hack'),
    text = $this[0].innerHTML;
$('#ohno').text( text );

// Should only be one alert from the initial loading of the above script.