Fork me on GitHub

BBCode.php Sample

Revision History

Started on parser. Parser can detect unfinished first-level bbcode. Recursive checking (child bbcode) is not implemented yet.

Recursive parsing just about done. There may still be bugs thoughl more testing needs to be done. Next up: Tag fixing when invalid tags are detected.

Parser is pretty much done. (Most) Bugs have been fixed.

3 and a half years later! Fixed a long-standing bug in which text with no mark-up in child text is ignored. Moved to OOPHP and did some housekeeping.

Fixed a bug with level >2 bbcode.

© 2010-2014 Tony Peng