summaryrefslogtreecommitdiff
path: root/inc/functions.php
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2010-11-03 20:44:51 +1100
committerSavetheinternet <savetheinternet@n0v4.com>2010-11-03 20:44:51 +1100
commit5f0a3aa146288d799394deeeee5fea8b25aff961 (patch)
treebb449d86f97cf3b7abef3419af3245fa4f39b5f5 /inc/functions.php
parent523cf48bae049d6f6f7722f5367c012aeb1e3571 (diff)
URL markup
Diffstat (limited to 'inc/functions.php')
-rw-r--r--inc/functions.php6
1 files changed, 3 insertions, 3 deletions
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, "<a href=\"$0\">$0</a>", $body);
+
$body = preg_replace("/(^|\n)([\s]+)?(&gt;)([^\n]+)?($|\n)/m", '$1$2<span class="quote">$3$4</span>$5', $body);
-
$body = preg_replace("/(^|\n)==(.+?)==\n?/m", "<h2>$2</h2>", $body);
-
$body = preg_replace("/'''(.+?)'''/m", "<strong>$1</strong>", $body);
-
$body = preg_replace("/\n/", '<br/>', $body);
}