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
1 changed files with 2 additions and 2 deletions

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';