aboutsummaryrefslogtreecommitdiff
path: root/views/default/output
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/output')
-rw-r--r--views/default/output/longtext.php18
1 files changed, 14 insertions, 4 deletions
diff --git a/views/default/output/longtext.php b/views/default/output/longtext.php
index a8540913f..1c57375de 100644
--- a/views/default/output/longtext.php
+++ b/views/default/output/longtext.php
@@ -8,10 +8,20 @@
* @author Curverider Ltd
* @link http://elgg.org/
*
- * @uses $vars['text'] The text to display
- *
+ * @uses $vars['value'] The text to display
+ * @uses $vars['parse_urls'] Whether to turn urls into links. Default is true.
*/
-global $CONFIG;
+$parse_urls = isset($vars['parse_urls']) ? $vars['parse_urls'] : TRUE;
+
+$text = $vars['value'];
+
+$text = filter_tags($text);
+
+if ($parse_urls) {
+ $text = parse_urls($text);
+}
+
+$text = autop($text);
-echo autop(parse_urls(filter_tags($vars['value']))); \ No newline at end of file
+echo $text;