aboutsummaryrefslogtreecommitdiff
path: root/views/default/input/plaintext.php
blob: 7d59b3d0d43d7174e2cc53b75580299fb8b9a67c (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['name'] The name of the input field
 * @uses $vars['class']
 * @uses $vars['disabled']
 */

$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 htmlspecialchars($value, ENT_QUOTES, 'UTF-8', false); ?>
</textarea>