Sanitization library, medium trust and unsafe code

Jun 1, 2011 at 8:25 PM

Hi there,

i am using antixss v4 in my asp.net mvc 2 web app and Sanitize.GetSafeHtmlFragment() makes really simple the server side html user input validation.

I have read from the "what's new" doc that HtmlSanitization lib needs to run in Full trust environments and the ability to run unsafe code. Asp.net mvc requires Full trust mode, so this is not an issue, but what does it mean that it has to run unsafe code?

thanks