JSFiddle - React, Tailwind, and code Playground
by Taleeb Anwar
HTML
<input type='text' id='txt' />
JavaScript
var h = '<html><head></head><body><div><a href="#"></a><span id="one"> </span><span id="two">two</span><div><table><tr><td>1</td></tr></table></div><span id="three"> </span></div></body><html>';
$('#txt').val($(h).find('table').html());