JSFiddle - React, Tailwind, and code Playground

by Jussia

HTML

<div id="elem"></div>

JavaScript

var text = '<b>текст</b>';

  elem.appendChild(document.createTextNode(text));