summaryrefslogtreecommitdiff
path: root/inc/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/functions.php')
-rw-r--r--inc/functions.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/inc/functions.php b/inc/functions.php
index 5c6b7c72..9ddbb495 100644
--- a/inc/functions.php
+++ b/inc/functions.php
@@ -919,6 +919,16 @@
}
}
+ function quote($body) {
+ $body = str_replace('<br/>', "\n", $body);
+
+ $body = strip_tags($body);
+
+ $body = preg_replace("/(^|\n)/", '$1&gt;', $body);
+
+ return $body . "\n";
+ }
+
function markup(&$body) {
global $board, $config;