Run generated HTML through JSON.stringify