For a full comparison of minifiers, jump to https://methodfish.com/Articles/minifiers

Rodrigo54

This is a demonstration of the html minifier using Rodrigo54 class

Input html:

Output:

<html><head><style>.container{padding:0;margin-left:9px}.container{text-align:right;width:calc(100% - 30px)}</style><script>var _elems=[];var _arr2=[];window.addEventListener('load',function(){_elems=document.getElementsByClassName('DIV');console.log(_elems.length)});function doSomething(elem,catchFg){doSomethingElse(elem,catchFg,"stop")}</script></head><body>Lorem    ipsum
delor<table><tr><td>Lorem <input type='search' onkeyup='typewatch(this,"doMyAssetFilter()",300)'></td><td onClick='doSomething()'>Ipsum</td></tr></table>
Lorem&nbsp;Ipsum&nbsp;Delor!</body></html>

Minify time: 0.0024 seconds; 573 bytes 62.49% of original size (from 917 bytes).