I have implemented my own BBCode system (as part of my custom-built forum package), and one of the BBCode tags is [css=Valid CSS here]...[/css] => <div style="$1">...</div> It works, but I had to lay down some rules such as "don't use position:absolute" and this means rules have to be enforced. ...