/** * Define the widget's content * @param $value widget's content */ public function setValue($value) { $value = str_replace('<br>', "\n", $value); $value = str_replace(' ', ' ', $value); $this->value = $value; parent::set_text($value); $this->show(); }