javascript - Get entire document HTML as string - Stack Overflow
Is there a way in JS to get the entire HTML within the html tags, as a string? document.documentElement.?? ... MS added the outerHTML and innerHTML properties some time ago. According to MDN, outerHTML is supported in Firefox 11, Chrome 0.2, Internet ......