ASP.Net - How do I allow users to enter html tags in textbox without runtime errors?
- by Coder
I have an input textbox on an asp.net page and when a user inputs any tags like break tags or bold an error occurs. I currently am using the following to encode the input:
Server.HtmlEncode(mytextbox.Text)
However this only encodes characters when they aren't phrased as an html tag, like if the input is "<<<" is there a way for me to…