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:
parent
c16ddd6775
commit
19724a51b3
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue
Block a user