JSFiddle - React, Tailwind, and code Playground

HTML

<p>...</p>

JavaScript

var stuff = $('<div>Lorem ipsum do foo and see <code> jQuery164040582746267318726="1"</code> in the attributes bar</div>').html();

$('p').text(stuff);