aboutsummaryrefslogtreecommitdiff
path: root/views/default/input/plaintext.php
blob: a0a8a39497e5065139fc2e34b837d004a5a70019 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
/**
 * Elgg long text input (plaintext)
 * Displays a long text input field that should not be overridden by wysiwyg editors.
 *
 * @package Elgg
 * @subpackage Core
 *
 * @uses $vars['value'] The current value, if any
 * @uses $vars['js'] Any Javascript to enter into the input tag
 * @uses $vars['internalname'] The name of the input field
 *
 */

$defaults = array(
	'class' => 'elgg-input-textarea'
	'disabled' => FALSE,
);

$value = $vars['value'];
unset($vars['value']);

$attrs = array_merge($defaults, $vars);
?>

<textarea <?php echo elgg_format_attributes($attrs); ?>>
	<?php echo htmlentities($value, ENT_QUOTES, 'UTF-8'); ?>
</textarea>