How to safely allow html input in texboxes?

  • Thread starter Thread starter DDK
  • Start date Start date
D

DDK

I am trying to figure out the best way to allow users to submit HTML in a
textbox, and allow them the ability to edit the text HTML submitted
afterwards safely in ASP.NET + C# (submitted to a sql server database), so
that the application is not subject to script attacks. Any ideas on the best
options for this.

thanks,
d.
 
You could use a regular expression validator to allow certain limited
characters, and not others.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top