From: Evan Winslow Date: Wed, 7 Jul 2010 00:18:13 +0000 (+0000) Subject: Changed $tag to $element in html5 input/default which was causing inputs to not be... X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=434e44174ab3689a15d0d23deeaa191c6695fcf8;p=lorea%2Felgg.git Changed $tag to $element in html5 input/default which was causing inputs to not be displayed --- diff --git a/views/default/input/default.php b/views/default/input/default.php index 59ad357e7..050e3b765 100644 --- a/views/default/input/default.php +++ b/views/default/input/default.php @@ -50,9 +50,6 @@ $defaults = array( $attributes = array_merge($defaults, $vars); -$attributes['value'] = htmlspecialchars($attributes['value'], ENT_QUOTES, 'UTF-8'); - - //Build the input $element = array(); @@ -61,11 +58,10 @@ foreach ($attributes as $attr => $val) { if ($val === TRUE) { $element[] = $attr; } elseif ($val !== FALSE) { - $val = addslashes($val); $element[] = "$attr=\"$val\""; } } $element[] = $js; $element[] = "/>"; -echo implode(" ", $tag); \ No newline at end of file +echo implode(" ", $element); \ No newline at end of file