Minify html correctly