mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-02 19:27:52 +02:00
Gelato: Minify fixes
This commit is contained in:
@@ -30,7 +30,7 @@ class MinifyHTML
|
|||||||
public static function process($html)
|
public static function process($html)
|
||||||
{
|
{
|
||||||
// Remove HTML comments (not containing IE conditional comments).
|
// 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.
|
// Trim each line.
|
||||||
$html = preg_replace('/^\\s+|\\s+$/m', '', $html);
|
$html = preg_replace('/^\\s+|\\s+$/m', '', $html);
|
||||||
|
Reference in New Issue
Block a user