Index: bbcode-filter.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/bbcode/bbcode-filter.inc,v retrieving revision 1.66 diff -u -p -r1.66 bbcode-filter.inc --- bbcode-filter.inc 30 Nov 2008 08:50:08 -0000 1.66 +++ bbcode-filter.inc 22 Apr 2009 14:49:24 -0000 @@ -130,6 +130,9 @@ function _bbcode_filter_process(&$body, $body = preg_replace("#\[\x07[=]*((?-i)[cds1aAiI])*(?::\w+)?\]([^\x07]*)\[/\x07(?::\w+)?\]#esi", '"<". $l_type[\'$1\']["tag"] ." class=\"bb-list\" style=\"list-style-type:". $l_type[\'$1\']["style"] .";\">". str_replace(\'\"\', \'"\', \'$2\') .""', $body); } + // ol with start number + $body = preg_replace("#\[\x07[=]*((?-i)[0123456789]+)*(?::\w+)?\]([^\x07]*)\[/\x07(?::\w+)?\]#esi", '"<". $l_type["1"]["tag"] . " start=" . $1 . " class=\"bb-list\" style=\"list-style-type:". $l_type["1"]["style"] .";\">". str_replace(\'\"\', \'"\', \'$2\') .""', $body); + // remove
tags $body = preg_replace('#(<[/]*([uo]l|li).*>.*)
#i', '$1', $body); } // end processing for [list] and [*]