Skip to content
Snippets Groups Projects
Commit 6834946f authored by Andreas Gohr's avatar Andreas Gohr
Browse files

correctly handle line breaks in textarea #1312

Textareas use CRLF, but internally we use LF.
parent ecbfee27
No related branches found
No related tags found
No related merge requests found
...@@ -31,7 +31,7 @@ class TextareaElement extends InputElement { ...@@ -31,7 +31,7 @@ class TextareaElement extends InputElement {
*/ */
public function val($value = null) { public function val($value = null) {
if($value !== null) { if($value !== null) {
$this->text = $value; $this->text = cleanText($value);
return $this; return $this;
} }
return $this->text; return $this->text;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment