/** * {@inheritdoc} */ public function bb2html($text) { $this->handler = bbcode_create($this->tags); $this->addSmiles(); $parsedText = bbcode_parse($this->handler, $text); bbcode_destroy($this->handler); return $parsedText; }
public function __destruct() { bbcode_destroy($this->bbcode); }