JSFiddle - React, Tailwind, and code Playground
HTML
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div id="test">
</div>
</body>
</html>
JavaScript
$(function(){
let html = "<span style="font-weight:bold;"&gtHello world!<span>";
$.each(html, function(){
var t = html.text();
t.replace('<','<').replace('>', '>');
})
alert(html)
});