kbryant414
Active member
I'm probably overlooking something simple again. This is just a dummy-proofing step I'm trying to do.
For example, say that I'm making a bbcode that the user enters a color for.
If the user puts in a color with spaces, I want the {option} to treat spaces as underscores.
Thanks for any help.
For example, say that I'm making a bbcode that the user enters a color for.
[bbcode=Red]Some content.[/bbcode]
<font color="red">Some content.</font>
<font color="red">Some content.</font>
If the user puts in a color with spaces, I want the {option} to treat spaces as underscores.
[bbcode=Brick Red]Some content.[/bbcode]
<font color="brick_red">Some content.</font>
<font color="brick_red">Some content.</font>
Thanks for any help.