BBCode.php BBCode.php is a minimalistic BBCode parser for PHP that has extensible support for custom tags and is secure against XSS and HTML injection attacks. Live demo: http://tonypeng.com/playground/bbcode/