A PHP5 replacement for HTML_BBCodeParser