/** * Set field value * * If we are setting body purifier will be included and value will be ran * through it. Else we will simply inherit behavior * * @param string $field * @param mixed $value * @return string */ function setFieldValue($field, $value) { if (!$this->is_loading && $this->getType() == 'text' && $field == 'body') { $value = prepare_html($value, true); } // if return parent::setFieldValue($field, $value); }