JSFiddle - React, Tailwind, and code Playground
JavaScript
var html = $('<!DOCTYPE html>\
<html>\
<body> \
<div id="dashboard">\
<script>\
alert('here');
</script>\
<div id="dash2">\
<h1>Hetri</h1>\
</div>\
</div>\
</body>\
</html>');
console.log(1,html);
console.log(2,html.filter('#dashboard').html());
console.log(3,html.html());