Quote:
Yesterday at 06:51 PM Logician said this in Post #21
Does it? I dont think so.. Have you tested it?
|
I did not test it... but if my logic is good, that code will remove all bbcode from the content.
Basically removes everything in between [ brackets.
You can start working from there... to adjust it onto your hack.
Example, the code:
$string = preg_replace( '~<[^\]]*>~' , '' , $string );
can be also written as:
$string = preg_replace( '~[high]\[[/high][^\]]*[high]\][/high]~' , '' , $string );
and on and on...