src/content.service.js
/**
   * Serialize a HTML Document to a string
   * @param {DocumentHTML} contentDocument
   */
Serialize a HTML Document to a string
@param {DocumentHTML} contentDocument
Serialize a HTML Document to a string @param { DocumentHTML } contentDocument
static serializeHtmlDocument(contentDocument) {
    if (!contentDocument || !(contentDocument instanceof HTMLDocument)) {
      throw new Error('No Html Document');
    }
    return `${ContentService.serializeDoctype(contentDocument.doctype)}${
      contentDocument.head.outerHTML
    }${contentDocument.body.outerHTML}`;
  }
static serializeHtmlDocument ( contentDocument ) { if ( ! contentDocument || ! ( contentDocument instanceof HTMLDocument ) ) { throw new Error ( 'No Html Document' ) ; } return ` ${ ContentService . serializeDoctype ( contentDocument . doctype ) } ${ contentDocument . head . outerHTML } ${ contentDocument . body . outerHTML } ` ; }
Serialize a HTML Document to a string
 @param {DocumentHTML} contentDocument
Serialize a HTML Document to a string @param { DocumentHTML } contentDocument