I want to disable BBCode feature in my forum. But I want to leave
[ /quote] tags for quotations purposes... I have messages stripped from BBCode before saving to database by this function:
Code:
function stripBBCode($text_to_search){
$pattern = '|[[\/\!]*?[^\[\]]*?]|si';
$replace = '';
return preg_replace($pattern, $replace, $text_to_search);
}
The problem is that it strips everything and I want [ quote] [/quote ]
& [quote= tags to still remain in all messages.
How to modify this function to leave QUOTATION tags? I know that to this requires understanding of preg_replace but im still new