Use this free HTML to Javascript converter to convert your HTML code (or plain text) into Javascript document.write() statements.
Enter your HTML into the box below click "Convert Now" and it will be converted to Javascript code that outputs that same HTML or text.
Quote and backslash characters will be appropriately escaped with backslashes so the strings will print correctly.