I am implementing a MVC2 application an need to allow html in an description field. This model has many more fields which need validation.
I just saw that MVC3 has this attribute [AllowHtml] to do this.
Is there a solution for this in MVC2? or will I need to upgrade to MVC3?
Thanks in advance!
The below one is the approach I would follow :
Allow User to input HTML in ASP.NET MVC – ValidateInput or AllowHtml
You need to be careful though. The user input could be evil any time.