--- bbcode-filter.inc~ 2008-11-30 14:20:08.000000000 +0530 +++ bbcode-filter.inc 2010-04-04 20:11:59.459557194 +0530 @@ -214,8 +214,12 @@ '[br]' => '
', // Force space '[sp]' => ' ', + // Indent Start + '[indent]' => '
', + // Indent End + '[/indent]' => '
', ); - $body = str_replace(array_keys($str), array_values($str), $body); + $body = str_ireplace(array_keys($str), array_values($str), $body); // We cannot evaluate the variable in callback function because // there is no way to pass the $format variable