ID:123288
 
BB Code by Metamorphman
Use bbcode in your games!
3 fans · Created Jan 18 2012
Using BBCode is a nice way to handle how players are allowed to customize output text in your games without interfering with smilies such as >_> and <_< (in the case you're going to parse them into icons)

As an example, in bbcode, the counterpart to <b>test<b> would be [b]test[/b]

With the html_bb list, you are also able to shorten tags as well.
For example:
<font color = red>test</font>
is shortened as:
[c=red]test[/c]
Easier, yes? :D

The bbParse proc provided also has the convenience of returning an empty string if there is nothing between or outside the tags. NOTE: make sure to call bbParse after using html_encode!