Elgg  Version 3.0
plaintext.php
Go to the documentation of this file.
1 <?php
15 $vars['class'] = elgg_extract_class($vars, 'elgg-input-plaintext');
16 
18  'value' => '',
19  'rows' => '10',
20  'cols' => '50',
21  'disabled' => false,
22 ];
23 
24 $vars = array_merge($defaults, $vars);
25 
26 $value = htmlspecialchars($vars['value'], ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8');
27 unset($vars['value']);
28 
29 echo elgg_format_element('textarea', $vars, $value);
$value
Definition: plaintext.php:26
elgg_extract_class(array $array, $existing=[], $extract_key= 'class')
Extract class names from an array, optionally merging into a preexisting set.
Definition: elgglib.php:1153
$vars['class']
Definition: plaintext.php:15
elgg_format_element($tag_name, array $attributes=[], $text= '', array $options=[])
Format an HTML element.
Definition: output.php:168
elgg echo
Translates a string.
Definition: languages.js:43
$defaults
Definition: plaintext.php:17