How to safely allow html input in texboxes?

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.
 
R

Rick Spiewak

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

Staff online

Members online

Forum statistics

Threads
473,769
Messages
2,569,577
Members
45,052
Latest member
LucyCarper

Latest Threads

Top