Off-topic: You might wanna sanitize user input
http://www.aggreddit.com/?r=%3Cscript%3Ealert%28%27xss%27%29...
http://www.aggreddit.com/?r=%3Cscript%3Ealert%28%27xss%27%29...
OP, you might want to check out HTML Purifier (if you're using PHP) and htmlentities().