JSFiddle - React, Tailwind, and code Playground

HTML

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

JavaScript

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