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',
|
'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';
|
||||||
|
|
Loading…
Reference in New Issue
Block a user