aboutsummaryrefslogtreecommitdiff
path: root/views/default/input/option.php
blob: f420c9be4baae8c1d54000d8b8e69ed4afa9797e (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 = html5_get_html_attributes($vars);

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