Elgg  Version 2.3
longtext.php
Go to the documentation of this file.
1 <?php
13 $vars['class'] = elgg_extract_class($vars, 'elgg-output');
14 
15 $parse_urls = elgg_extract('parse_urls', $vars, true);
16 unset($vars['parse_urls']);
17 
18 $parse_emails = elgg_extract('parse_emails', $vars, true);
19 unset($vars['parse_emails']);
20 
21 $sanitize = elgg_extract('sanitize', $vars, true);
22 unset($vars['sanitize']);
23 
24 $autop = elgg_extract('autop', $vars, true);
25 unset($vars['autop']);
26 
27 $text = $vars['value'];
28 unset($vars['value']);
29 
30 if ($parse_urls) {
32 }
33 
34 if ($parse_emails) {
36 }
37 
38 if ($sanitize) {
40 }
41 
42 if ($autop) {
44 }
45 
parse_urls($text)
Takes a string and turns any URLs into formatted links.
Definition: output.php:17
$vars['class']
Definition: longtext.php:21
$autop
Definition: longtext.php:24
$sanitize
Definition: longtext.php:21
filter_tags($var)
Filter tags from a given string based on registered hooks.
Definition: input.php:53
elgg_extract_class(array $array, $existing=[])
Extract class names from an array with key "class", optionally merging into a preexisting set...
Definition: elgglib.php:1396
elgg_format_element($tag_name, array $attributes=array(), $text= '', array $options=array())
Format an HTML element.
Definition: output.php:208
$text
Definition: longtext.php:27
$parse_emails
Definition: longtext.php:18
elgg_autop($string)
Create paragraphs from text with line spacing.
Definition: output.php:46
elgg_parse_emails($text)
Takes a string and turns any email addresses into formatted links.
Definition: output.php:33
elgg echo
Translates a string.
Definition: languages.js:48
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:1375
$parse_urls
Definition: longtext.php:15