How to remove your forum bbcode or vbcode formate?

Started by admin, May 28, 2010, 03:05:12 AM

Previous topic - Next topic

admin

Hi all,
if you want to cvonvert your forum code, vbcode or bbcode to regular text in order to display in your hame page or any where else, you can use the following:

function stripBBCode($text_to_search)

$pattern = '|[[\/\!]*?[^\[\]]*?]|si'; 
$replace = '';
return preg_replace($pattern, $replace, $text_to_search);

echo stripBBCode($text);