I am using a DevExpress HTMLEditor to create a page that can edit HTML.
When I attempt to submit content that includes HTML tags, it throws the following error:
Content Submitted
<div>Hello World</div>
Error
A potentially dangerous Request.Form value was detected from the client.
My understanding is that this error is in place to help prevent an XSS attack. However, I am under the impression that XSS attacks require the use of JavaScript or SQL. Is there any circumstance where pure HTML can be used for such an attack?
What is the best way of allowing HTML tags to be submitted but disallowing JavaScript, SQL or anything else that actually has the potential of being dangerous?