Reduces whitespace in HTML markup
This module aims to reduce the whitespace in HTML markup. It does is not cover all cases, but tries it's best to make the markup a bit cleaner.
$ npm install --save html-trim
const htmlTrim = require('html-trim');
htmlTrim('<span>end of the sentence. <br><br> </span>');
//=> '<span>end of the sentence.<br></span>'
MIT © ScienceMatters