/** * @param string $attribute * @param mixed $value */ protected function setValue($attribute, $value) { if ($this->isFilterHtml()) { // TODO: add filter html tags } parent::setValue($attribute, WYSIWYGHelper::applyFilter($this->getEditor(), $value)); }