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.