Question

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?

Was it helpful?

Solution

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

@Ray Cheng, cheers

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top