Fork me on GitHub


BBCode.php Sample



Revision History

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

8.29.10
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.

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

2.28.14
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.

3.2.14
Fixed a bug with level >2 bbcode.


© 2010-2014 Tony Peng