HTMl Helpers in MVC: How to render html tags using a helper like ActionLink?
2 answers
I don't know that you can turn off XSS protection in helper methods, but you can always create your own helper methods. Just create an extension method that depends on the Html class.
If you just want to display some HTML from the database, you can use <% = ViewData ["MyContent"]%> if the controller is loading data into the view data of MyContent. Just know that you have to clean up this HTML yourself.
+1
source to share