aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/input.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/input.php')
-rw-r--r--engine/lib/input.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/engine/lib/input.php b/engine/lib/input.php
index 289542547..a412f3644 100644
--- a/engine/lib/input.php
+++ b/engine/lib/input.php
@@ -116,6 +116,12 @@ function parse_urls($text) {
), $text);
}
+/**
+ *
+ * Adds P tags.
+ * Borrowed from Wordpress.
+ *
+ **/
function autop($pee, $br = 1) {
$pee = $pee . "\n"; // just to make things a little easier, pad the end
$pee = preg_replace('|<br />\s*<br />|', "\n\n", $pee);
@@ -359,4 +365,4 @@ function input_init() {
}
}
-register_elgg_event_handler('init','system','input_init'); \ No newline at end of file
+register_elgg_event_handler('init','system','input_init');