BBcode is popular on many discussion boards and allows your users to submit formatted content in an easy to understand way. Correctly processing this content and converting it to html for display on your site can unfortunately be difficult. In this article I demonstrate a simple and straightforward way to process BBCode formatted content using the HTML_BBCodeParser package available from PEAR.