ASP.NET MVC – Regex to allow less than character safely
I have a ASP.NET MVC 5 app where my business users require to enter a < (less than sign). For their specific business segment the < is a common used sign. I know about the problem of XSS-Attacks, but I’m trying to find a solution to allow just the < without opening XSS-Attacks. I DON’T want to allow HTML, so I don’t what to set [AllowHtml] or disable the validation rules. They should be turned on.