__construct()
__construct() :
BBCODE class
Miscellaneous BBCode elements
bbencode_list( message) :
Decode [list]...[/list] and [list=xx]...[/list]
This has been shamelessly pinched from PHP Bulletin Board code with a little debugging.... Nathan Codding - Jan. 12, 2001. Performs [list][/list] and [list=?][/list] bbencoding on the given string, and returns the results. Any unmatched "[list]" or "[/list]" token will just be left alone. This works fine with both having more than one list in a message, and with nested lists. Since that is not a regular language, this is actually a PDA and uses a stack. Great fun.
Note: This function assumes the first character of $message is a space, which is added by bbencode().
message |