public function filterField($value) { $return = parent::filterField($value); if ($this->params->get("strip_tags_before_save", 0)) { $allowable_tags = $this->params->get("allowable_tags", "u,b,i,a,ul,li,pre,blockquote,strong,em"); $allowable_tags = str_replace(' ', '', $allowable_tags); $allowable_tags = "<" . str_replace(',', '><', $allowable_tags) . ">"; $return = strip_tags($return, $allowable_tags); } return $return; }