Add very basic html minification

This commit is contained in:
Timothy Warren 2017-03-24 12:55:30 -04:00
parent 0270ba397c
commit f44d4cb6c9

View File

@ -67,6 +67,10 @@ class HtmlView extends HttpView {
$buffer = ob_get_contents();
ob_end_clean();
// Very basic html minify, that won't affect content between html tags
$buffer = preg_replace('/>\s+</', '> <', $buffer);
return $buffer;
}
}