Get Google Document as HTML

后端 未结 8 2002
无人及你
无人及你 2020-11-27 17:28

I had a wild idea that I could build a website blog for an unsophisticated user friend using Google Drive Documents to back it. I was able to create a contentService that c

8条回答
  •  悲&欢浪女
    2020-11-27 18:28

    Perhaps this would work for you...

    function doGet() {
      var blob = DriveApp.getFileById('myFileId').getAsHTML();
      return HtmlService.createHtmlOutput(blob);
    }
    

提交回复
热议问题