aboutsummaryrefslogtreecommitdiff
path: root/mod/html5/views/default/input/option.php
blob: 05d5d649fcebd92c0f52dae554eba7a9e8d6ce85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php

$text = $vars['text'];

if (!isset($text)) {
	$text = $vars['value'];
	unset($vars['value']);
}

$text = htmlentities($text, ENT_QUOTES, 'UTF-8');
$attributes = elgg_format_attributes($vars);

echo "<option $attributes>$text</option>";