JSFiddle - React, Tailwind, and code Playground
HTML
<div id="test"><span style="font-weight:bold;">Hello world!<span></div>
JavaScript
$('#test').each(function(){
var $this = $(this);
var t = $this.text();
$this.html(t.replace('<','<').replace('>', '>'));
});