JSFiddle - React, Tailwind, and code Playground

HTML

<input type="text" value="<div id='test'>hello</div><strong>" />

JavaScript

$('#test').html("<div id='test'>hello</div><strong>");