summaryrefslogtreecommitdiff
path: root/inc/functions.php
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2011-04-12 19:56:37 +1000
committerSavetheinternet <savetheinternet@n0v4.com>2011-04-12 19:56:37 +1000
commit6b7786511027ca41180325e178ff0f72823b8c60 (patch)
tree53e72a015dd6d955a97c30906f44d35a352514c6 /inc/functions.php
parent9dc1e9870418a54f834c2e546e1c549c3662c4e8 (diff)
Reply to PMs with quote
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;