htmlcompressor

Minify HTML or XML

https://code.google.com/archive/p/htmlcompressor/

Current versions:

stable 1.5.3

Options:

--with-yuicompressor Use YUICompressor for JS/CSS compression
--with-closure-compiler Use Closure Compiler for JS optimization

Depends on optionally:

yuicompressor 2.4.8 Yahoo! JavaScript and CSS compressor
closure-compiler 20180506 JavaScript optimizing compiler

JSON API for htmlcompressor

Formula code on GitHub

Fork me on GitHub