PHP Markdown and BBCode Parser is a package that converts Markdown and BBCode to HTML. A base class is also capable of sanitizing the text by removing JavaScript tags.
php4-html-dom is a lightweight, fault tolerant, high speed, single-pass HTML parser. It builds HTML DOM, similar to accessing a Web browser's DOM with JavaScript. It is compatible with PHP4 and higher.
The Asterisk Config PHP-Parser is a simple but effective PHP function that is able to parse any standard Asterisk configuration file and output the data into a multi-dimensional array.