if U want to replace BBcode to HTML use this
PHP Code:
require_once('./global.php');
require_once(DIR . '/includes/class_bbcode.php');
$bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
$previewmessage = $bbcode_parser->parse($message);
and to remove them use the
PHP Code:
$previewmessage = strip_tags(strip_bbcode($message, true, true));
see the result
www.akafi.net/tvv.php