This is for some forum software already - so when I get the data, it comes as BBCode, so no point converting back/forth :) Just need to get rid of the damn URL stuff =)
I know that the documentation says that this module converts BBCode to HTML, but it also lets you modify the parse tree, and convert it back to bbcode with the raw_text method.