Skip to content

Export Google Doc as clean html. Handy to make a Wordpress post from Google Doc.

Notifications You must be signed in to change notification settings

na-trium-144/GoogleDoc2Html

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 

Repository files navigation

Google Doc to clean HTML converter

This is a fork of thejimbirch/GoogleDoc2Html

  • Applied the PRs of oazabir/GoogleDoc2Html
  • Copied some code from kerray/GoogleDoc2Html
  • Fixed other formatting issues
  • Deploy web app that returns the HTML as a response instead of sending email
  • Add GoogleSpreadsheet converter

Usage

  1. Create a new Google Apps Script project on your Google Drive.
  2. Copy and paste the code (code.js and sheet.js)
  3. Save the file and deploy it.
  4. Access https://script.google.com/.../exec?url=(url of your document here) to get the HTML output of the Google Doc.
  • images are saved on your GoogleDrive, and the download link will be embedded in img tags in the HTML.
  • add &type=html to view the page directly in the browser.
  • add &type=time to get the last-updated time of the document instead of the contents.

About

Export Google Doc as clean html. Handy to make a Wordpress post from Google Doc.

Topics

Resources

Stars

Watchers

Forks

Languages

  • JavaScript 100.0%