My CMS is adding extra HTML markup after the closing HTML tag. I would like remove it using jQuery and am unable to find a selector that can select the closing HTML tag.
Here is example markup:
<html>
<head> [...] </head>
<body> [...] </body>
</html>
<span></span><span></span><span></span><div></div><div></div>
Here is my feeble attempt:
$('html:last').nextAll().remove()
$('</html>').nextAll().remove()
Ideally, I would like to figure out where its coming from, but for now, just strip it off..