Hello All.
Im building a new forum for my site, ive allready done one and has been working fine,
What i want to do is build a new forum, using 1 of the current HTML editors to can freely use. The problem with this is its going to be using pure html, Not BBCode,
My question is whats the security like with allowing HTML posted by a potentiol hacker into the database and then on to the site.
Ive got a function to strip certain malicous attributes from each tag. This will strip out things like
javascriptšonclick|onclick|onmousedown|onmouseup|onmouseover|onmousemove|onmouseout|onkeypress|onkeydown|onkeyup
Ill also make it so only certain safe html tags are allowed to be posted.
Good idea or bad?
Thanks