<?php
namespace UW\SmileysBar\Extend\Html\Renderer;
use XF\Html\Tag;
use XF\Html\Text;
class BbCode extends XFCP_BbCode
{
// public function __construct() {
// $this->_handlers['span'] = ['wrap' => '[UWSL]%s[/UWSL]'];
// $this->_handlers['span'] = ['filterCallback' => ['$this', 'handleTagTest']];
// }
// public function handleTagTest($text, Tag $tag)
// {
// $pattern = "/\[SIZE|\[COLOR=|\[FONT=/i";
// $match = preg_match($pattern, $text);
// if(!$match)
// {
// return '[UWSL]'.$text.'[/UWSL]';
// }
// return $text;
// }
}