/**
  * {@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;
 }
Ejemplo n.º 2
0
 public function __destruct()
 {
     bbcode_destroy($this->bbcode);
 }