Simple function that cleans out all the classes and formatting of a Google Docs HTML export. Keeps all regular tags except span tags because google docs adds a lot of them.
Meant to be used as a utility with larger projects
- Typescript (you can easily strip TS if you prefer straight JS)
- fs
- path