summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inc/functions.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/inc/functions.php b/inc/functions.php
index 3e2dc4b4..f078273c 100644
--- a/inc/functions.php
+++ b/inc/functions.php
@@ -1276,12 +1276,17 @@
}
function quote($body, $quote=true) {
+ global $config;
+
$body = str_replace('<br/>', "\n", $body);
$body = strip_tags($body);
$body = preg_replace("/(^|\n)/", '$1&gt;', $body);
+ if($config['minify_html'])
+ $body = str_replace("\n", '&#010;', $body);
+
return $body . "\n";
}