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