trac533 Removed redundant calls to htmlspecialcharacters().

XMLWriter::writeAttribute() already takes care of the escaping for
us, although that doesn't seem to be well documented.
This commit is contained in:
Zach Copley 2009-02-03 21:22:41 -08:00
parent c16ddd6775
commit 19724a51b3

View File

@ -172,7 +172,7 @@ class HTMLOutputter extends XMLOutputter
'type' => 'text',
'id' => $id);
if ($value) {
$attrs['value'] = htmlspecialchars($value);
$attrs['value'] = $value;
}
$this->element('input', $attrs);
if ($instructions) {
@ -206,7 +206,7 @@ class HTMLOutputter extends XMLOutputter
'class' => 'checkbox',
'id' => $id);
if ($value) {
$attrs['value'] = htmlspecialchars($value);
$attrs['value'] = $value;
}
if ($checked) {
$attrs['checked'] = 'checked';