From 5de117549f69465a1ce0f2e128428d9adadd8a6d Mon Sep 17 00:00:00 2001 From: "Thor (atiredmachine)" Date: Tue, 24 Jan 2012 22:08:36 -0800 Subject: Strips out HTML comments. --- system/core/Output.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'system') diff --git a/system/core/Output.php b/system/core/Output.php index 47c00acd8..8992fc1f1 100755 --- a/system/core/Output.php +++ b/system/core/Output.php @@ -600,6 +600,9 @@ class CI_Output { // Replace multiple spaces with a single space. $output = preg_replace('!\s{2,}!',"\n",$output); + // Remove comments (non-MSIE conditionals) + $output = preg_replace('{\s*\s*}msU','',$output); + // Remove spaces around block-level elements. $output = preg_replace('{\s*()\s*}', '$1', $output); -- cgit v1.2.3-24-g4f1b