Elgg  Version 2.3
plaintext.php
Go to the documentation of this file.
1 <?php
15 $vars['class'] = elgg_extract_class($vars, 'elgg-input-plaintext');
16 
17 $defaults = array(
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, '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 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
$vars['class']
Definition: plaintext.php:15
elgg echo
Translates a string.
Definition: languages.js:48
$defaults
Definition: plaintext.php:17