Since I was in the need of a stand-alone HTML compression library (also called „minify“/“minification“), I quickly ported Googles htmlcompressor library from Java to .NET (C#).
All HTML unit tests ran successfully, I also did about an additional 50+ tests of uncompressed, real-world comples HTML pages both with my implementation and Google’s just to see that both versions produce 100% exact results.
- c# html minifier
- c# htmlcompressor
- html compressor