This script converts HTML that has been exported from InDesign to a clean, usable format that can be pasted into Wordpress.
To install this package, type git clone https://github.com/ambikacastle/html-cleaner.git
in Terminal. Then, run npm install
in the HTML-Cleaner folder. NPM will install all necessary dependencies.
To use the package, first export an HTML file using InDesign, and save that HTML file to the HTML-Cleaner folder. Use Terminal to clean up the file by typing node app.js yourfilename.html
.