added minify_html hook