Elgg  Version 1.9
plaintext.php
Go to the documentation of this file.
1 <?php
15 if (isset($vars['class'])) {
16  $vars['class'] = "elgg-input-plaintext {$vars['class']}";
17 } else {
18  $vars['class'] = "elgg-input-plaintext";
19 }
20 
21 $defaults = array(
22  'value' => '',
23  'rows' => '10',
24  'cols' => '50',
25  'disabled' => false,
26 );
27 
28 $vars = array_merge($defaults, $vars);
29 
30 $value = $vars['value'];
31 unset($vars['value']);
32 
33 ?>
34 
35 <textarea <?php echo elgg_format_attributes($vars); ?>>
36 <?php echo htmlspecialchars($value, ENT_QUOTES, 'UTF-8', false); ?>
37 </textarea>
$value
Definition: plaintext.php:30
elgg echo
Translates a string.
Definition: languages.js:43
$defaults
Definition: plaintext.php:21
$vars
Definition: plaintext.php:28