What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-10-22 13:29:07
JSDOM - serialize() // returns dom as string
const dom = new JSDOM(`<!DOCTYPE html>hello`); dom.serialize() === "<!DOCTYPE html><html><head></head><body>hello</body></html>"; // Contrast with: dom.window.document.documentElement.outerHTML =... Add solution