From 5f0a3aa146288d799394deeeee5fea8b25aff961 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Wed, 3 Nov 2010 20:44:51 +1100 Subject: URL markup --- inc/functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'inc/functions.php') diff --git a/inc/functions.php b/inc/functions.php index 14adde4e..b709ea7c 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -125,12 +125,12 @@ $body = str_replace("\r", '', $body); + if(MARKUP_URLS) + $body = preg_replace(URL_REGEX, "$0", $body); + $body = preg_replace("/(^|\n)([\s]+)?(>)([^\n]+)?($|\n)/m", '$1$2$3$4$5', $body); - $body = preg_replace("/(^|\n)==(.+?)==\n?/m", "

$2

", $body); - $body = preg_replace("/'''(.+?)'''/m", "$1", $body); - $body = preg_replace("/\n/", '
', $body); } -- cgit v1.3