PHP Script to parse bbcode to html and html to bbcode