Ok, I've been looking all over the net trying to find some good advice on this. I'm working on a blog type application and I want my users to be able to format their text as they see fit. I have a nice little WYSIWYG textarea replacement, but I have a little question I need to have answered first.
Will allowing HTML into the dabase be a security risk?
Should I encode the HTML before hand perhaps? Or should I just be sure to validate the input to make sure only a limited set of safe tags is allowed (ie. <b> <ul>, etc.)
I notice a lot of forums using their own brand of fake HTML code (this one included), but it doesn't seem quite right to create more coding languages when there is already one suited. Is there a compeling reason to do so though??
Finally, are there any characters that should absolutely never be allowed into a database?? I currently disallow my forum users the use of a few 'illegal' characters that I have read are dangerous, but sometimes those users get a little annoyed they can't use them.
Thanks for your help!
Will allowing HTML into the dabase be a security risk?
Should I encode the HTML before hand perhaps? Or should I just be sure to validate the input to make sure only a limited set of safe tags is allowed (ie. <b> <ul>, etc.)
I notice a lot of forums using their own brand of fake HTML code (this one included), but it doesn't seem quite right to create more coding languages when there is already one suited. Is there a compeling reason to do so though??
Finally, are there any characters that should absolutely never be allowed into a database?? I currently disallow my forum users the use of a few 'illegal' characters that I have read are dangerous, but sometimes those users get a little annoyed they can't use them.
Thanks for your help!