JSFiddle - React, Tailwind, and code Playground
JavaScript
var html = '\
<html>\
<body>\
\
<a href="/foobar.txt">Hello</a>\
<a href="foobar.txt">World</a>\
\
</body>\
</html>';
var reg = /\<body[^>]*\>([^]*)\<\/body/m;
var content = html.match( reg )[1];
document.body.innerHTML = content;