convert an HTML document to a single-file archive, using base64 data-urls