Search code examples
c#.netantixsslibrary

Anti XSS Library removing UL tag. Why?


I am using the Microsoft anti xss library and I noticed that for some reason it is removing the <ul> tag. I can't figure out why. For instance:

 string html = @"<ul><li>this is a test </li></ul>";
 string sanitized = Sanitizer.GetSafeHtmlFragment(html);

This is returning:

   \r\n<li>this is a test </li>

Any ideas?


Solution

  • This is a bug. Users who would like to use one of the older versions can acquire them here

    @Ray Cheng, cheers