JSFiddle - React, Tailwind, and code Playground
by Nick Hulea
HTML
<div id="thanks">
<div>
<p>
<h1>
<a>lollypops</a>
</h1>
</p>
<span>lollypops</span>
</div>
</div>
<p>
<span class="lollypops">Hello, World!</span>
<img src="/lollypops.jpg" alt="Cool image" />
</p>
JavaScript
function() {
//var tmp = $(this).children().remove();
var text = $('#thanks').html();
text = text.replace(/lollypops/g, "marshmellows");
$('#thanks').html(text);
//$(this).append(tmp);
}