@miggy92/clean-html
v0.1.4
Published
Clean html by minifying html, striping comments, removing js, removing ng attributes and removing whitespaces
Downloads
13
Maintainers
Readme
HTML cleaning tool that works in the browser based on https://github.com/kangax/html-minifier/
usage is
const minify = require('clean-html');
const minifiedText = minify(text, options);
Options are
{
collapseBooleanAttributes = true,
collapseWhitespace = true,
removeNgAttributes = true,
removeCssComments = true,
removeHTMLComments = true,
removeJS = true
}