Minify HTML
Minifying HTML is the process of removing unnecessary characters such as whitespace, comments, and line breaks from HTML code to reduce its file size. This process is done to optimize the performance of a website. By reducing the size of HTML files, the time it takes for the browser to download them is decreased, resulting in faster page load times. Additionally, minifying HTML can also help to improve the website's SEO by making the code more readable for search engine crawlers.
Highly configurable, well-tested, JavaScript-based HTML minifier.
Source:
[1] github.com/kangax/html-minifier