From 6b7786511027ca41180325e178ff0f72823b8c60 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Tue, 12 Apr 2011 19:56:37 +1000 Subject: Reply to PMs with quote --- inc/functions.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'inc/functions.php') 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('
', "\n", $body); + + $body = strip_tags($body); + + $body = preg_replace("/(^|\n)/", '$1>', $body); + + return $body . "\n"; + } + function markup(&$body) { global $board, $config; -- cgit v1.3