Forum Moderators: coopster
If you want to execute it immediately, then you can avoid even having to go to the server. JavaScript with innerHTML will give you pretty much what you need.
If you want to store it, then just store what they type in. When you output it, it will be interpreted as HTML unless you do htmlspecialchars() or htmlentities() with it first.