JSFiddle - React, Tailwind, and code Playground
by jfriend00
HTML
<div id="item"></div>
JavaScript
function insertText(parent, str) {
if (str.charAt(0) == 'u') {
str = String.fromCharCode(parseInt(str.slice(1), 16));
}
parent.appendChild(document.createTextNode(str));
}
insertText(document.getElementById("item"), 'u00eb');