Smart HTML minification