Paste HTML into the input box and select HTML → JavaScript. The result wraps the markup in a JavaScript string and writes it using document.write.
This is a legacy output format. Running document.write after a page has loaded can replace the document. Review generated code before using it and do not insert untrusted markup.