Elgg  Version 6.1
longtext.php
Go to the documentation of this file.
1 <?php
13 $vars['class'] = elgg_extract_class($vars, 'elgg-output');
14 
15 $text = (string) elgg_extract('value', $vars);
16 unset($vars['value']);
17 
19 
20 if (empty($text)) {
21  return;
22 }
23 
24 unset($vars['parse_urls'], $vars['parse_emails'], $vars['parse_mentions'], $vars['sanitize'], $vars['autop']);
25 
26 echo elgg_format_element('div', $vars, $text);
$vars['class']
Elgg long text input Displays a long text input field that can use WYSIWYG editor.
Definition: longtext.php:16
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:256
$text
Definition: longtext.php:15
elgg_format_html(string $html, array $options=[])
Output functions Processing text for output such as pulling out URLs and extracting excerpts...
Definition: output.php:20
elgg_format_element(string $tag_name, array $attributes=[], string $text= '', array $options=[])
Format an HTML element.
Definition: output.php:145
elgg_extract_class(array $array, array|string $existing=[], string $extract_key= 'class')
Extract class names from an array, optionally merging into a preexisting set.
Definition: elgglib.php:279