bb code is not html, it you wrote it in PHP it might look something like this: [php]$message = preg_replace("#\[b\](.*?)\[/b\]#","<b>\\1</b>",$message);[/php] it's not pretty if you don't know much about regular expressions. Granted there are other ways of doing this, but this is a nice one-liner
That is not correct. BBCode is NOT an "implementation of HTML". That would require that it have it's own DTD or schema, doctype, etc. It isn't particularly simple, either, as it relies on PHP Regular Expressions. While powerful, regex isn't simple!
BBCode is short for "Bulletin Board Code", and is a tool developed, in PHP, and adopted by most if not all forum software vendors.
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.