BUGFIX: fixed escaping of code in textarea fields

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@76457 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Will Rossiter 2009-05-08 03:12:43 +00:00 committed by Sam Minnee
parent 66fe1a1838
commit dc1b131cc8

View File

@ -47,7 +47,7 @@ class TextareaField extends FormField {
return $this->createTag(
'span',
$attributes,
($this->value ? $this->value : '<i>(' . _t('FormField.NONE', 'none') . ')</i>')
($this->value) ? Convert::raw2xml($this->value) : '<i>(' . _t('FormField.NONE', 'none') . ')</i>'
);
} else {
$attributes = array(
@ -60,7 +60,7 @@ class TextareaField extends FormField {
if($this->disabled) $attributes['disabled'] = 'disabled';
return $this->createTag('textarea', $attributes, $this->value);
return $this->createTag('textarea', $attributes, Convert::raw2xml($this->value));
}
}