diff --git a/mod/data/field/textarea/field.class.php b/mod/data/field/textarea/field.class.php index 3901b6d431f..9d22247a4f7 100755 --- a/mod/data/field/textarea/field.class.php +++ b/mod/data/field/textarea/field.class.php @@ -84,6 +84,7 @@ class data_field_textarea extends data_field_base { function gen_textarea($usehtmleditor, $text='') { // MDL-16018: Don't print htmlarea with < 7 lines height, causes visualization problem + $text = clean_text($text); $this->field->param3 = $usehtmleditor && $this->field->param3 < 7 ? 7 : $this->field->param3; return print_textarea($usehtmleditor, $this->field->param3, $this->field->param2, '', '', 'field_'.$this->field->id, $text, '', true, 'field_' . $this->field->id);