JSFiddle - React, Tailwind, and code Playground

HTML

<div id="hideMsg">
The entry you posted not valid.
This Box will Close In <span>2</span> Seconds
</div>

JavaScript

var str='<input type="text" name="se_tbox" value="Beauty is Fake" />';
alert($(str).val());