JSFiddle - React, Tailwind, and code Playground

HTML

<div id="test">&lt;span style="font-weight:bold;"&gtHello world!&lt;span&gt;</div>

JavaScript

$('#test').each(function(){
    var $this = $(this);
    var t = $this.text();
    $this.html(t.replace('&lt','<').replace('&gt', '>'));
});