JSFiddle - React, Tailwind, and code Playground
HTML
<html>
<head>
<title>title</title>
</head>
<body>
</body>
</html>
JavaScript
$(document).ready(
function()
{
var value=$('html').html();
alert(jQuery('<div/>').text(value).html());
}
);