mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX: convert new lines to break tags in unescape mode without reverting the entire behaviour of dontEscape
This commit is contained in:
parent
2036354d8d
commit
4448325ad3
@ -387,7 +387,7 @@ class FormField extends RequestHandler {
|
||||
* Our base FormField class just returns a span containing the value. This should be overridden!
|
||||
*/
|
||||
function Field() {
|
||||
if($this->value) $value = $this->dontEscape ? ($this->reserveNL ? Convert::raw2xml($this->value) : $this->value) : Convert::raw2xml($this->value);
|
||||
if($this->value) $value = $this->dontEscape ? ($this->reserveNL ? nl2br($this->value) : $this->value) : Convert::raw2xml($this->value);
|
||||
else $value = '<i>(' . _t('FormField.NONE', 'none') . ')</i>';
|
||||
|
||||
$attributes = array(
|
||||
|
Loading…
Reference in New Issue
Block a user