aboutsummaryrefslogtreecommitdiff
path: root/mod/html5/views/default/input/option.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/html5/views/default/input/option.php')
-rw-r--r--mod/html5/views/default/input/option.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/mod/html5/views/default/input/option.php b/mod/html5/views/default/input/option.php
new file mode 100644
index 000000000..05d5d649f
--- /dev/null
+++ b/mod/html5/views/default/input/option.php
@@ -0,0 +1,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>"; \ No newline at end of file