JSFiddle - React, Tailwind, and code Playground

by mazzzzz

HTML

<div class="code"><div id="test">Some text</div></div>

JavaScript

$(".code").each(
    function () {
        $(this).text($(this).html()).html();
    }
);