Hi.. This is my first post. I would like to ask a question to all of you php wizards
I only have a novice - intermediate knowledge of PHP
I am curious as to how to strip the 'bbcode' tags out of a post on my forum.
bbcodes are always represented as "[<code>]" so i would need to write code to replace everything from the 1st bracket to the 2nd bracket with an empty string. I have tried using
$msg = ereg_replace("[[*]]", "", $msg);
however this doesnt work (I think because the brackets are reserved characters.
I also tried escaping around the brackets:
$msg = ereg_replace("[[*]]", "", $msg);
but that didnt work either.
I hope someone on here has an idea
Thanks