/** * @inheritdoc */ public function init() { $this->filter = function ($value) { $value = strip_tags($value, $this->allowedTags); return RichTextPurifier::process($value); }; parent::init(); }
/** * @inheritdoc */ public function init() { $this->filter = array($this, 'replace'); $this->Essence = new Essence($this->essenceConfig); return parent::init(); }
/** * @inheritdoc */ public function init() { $this->filter = array($this, 'purify'); return parent::init(); }
/** * @inheritdoc */ public function init() { $this->filter = array($this, 'texturize'); $this->staticTranslations = array_merge(self::$DEFAULT_STATIC_TRANSLATIONS, ['``' => $this->leftDoubleQuote, '\'\'' => $this->rightDoubleQuote]); if (!is_array($this->noTexturizeTags)) { $this->noTexturizeTags = self::$DEFAULT_NO_TEXTURIZE_TAGS; } $this->prepareDynamicTranslations(); return parent::init(); }