mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-07-31 02:10:37 +02:00
Gelato: Minify fixes
This commit is contained in:
@@ -30,7 +30,7 @@ class MinifyHTML
|
||||
public static function process($html)
|
||||
{
|
||||
// Remove HTML comments (not containing IE conditional comments).
|
||||
$html = preg_replace_callback('/<!--([\\s\\S]*?)-->/', 'self::_comments', $html);
|
||||
$html = preg_replace_callback('/<!--([\\s\\S]*?)-->/', 'MinifyHTML::_comments', $html);
|
||||
|
||||
// Trim each line.
|
||||
$html = preg_replace('/^\\s+|\\s+$/m', '', $html);
|
||||
|
Reference in New Issue
Block a user