/** * Filter. * * @param string $thing * @param array $options */ public function filter($thing, $options) { parent::filter($thing, $options); if ($this->options['restricted']) { return $this->textile->TextileRestricted($thing, $this->options['lite'], $this->options['noimage'], $this->options['rel']); } else { return $this->textile->TextileThis($thing, $this->options['lite'], '', $this->options['noimage'], '', $this->options['rel']); } }
/** * Filter. * * @param string $thing * @param array $options */ public function filter($thing, $options) { parent::filter($thing, $options); return nl2br(trim($thing)); }