JSFiddle - React, Tailwind, and code Playground

HTML

<span id="text"></span>

JavaScript

function parseHtmlEnteties(str) {
    return str.replace(/&#([0-9]{1,3});/gi, function(match, numStr) {
        var num = parseInt(numStr, 10); // read num as normal number
        return String.fromCharCode(num);
    });
}

var str = "&#72;&#69;&#76;&#76;&#79;";
alert(parseHtmlEnteties(str));
$('text').set('html', str);