Is there a way in JS to get the entire HTML within the html tags, as a string?
document.documentElement.??
Use document.documentElement.
document.documentElement
Same Question answered here: https://stackoverflow.com/a/7289396/2164160