public function __construct()
 {
     parent::__construct();
 }
Esempio n. 2
0
 /**
  * Replaces some BBcode with HTML code
  *
  * NOTE: $text should be already escaped for HTML
  *
  * @param string $text html escaped input text
  * @param array $disabledTags
  */
 static function parse($text, $disabledTags = array())
 {
     static $parser = null;
     if ($parser === null) {
         $parser = new self(self::$ig);
     }
     $parser->reset();
     self::$disabledTags = $disabledTags;
     return $parser->bbcode($text);
 }