Anti XSS library removes the UL tag. What for?

I am using Microsoft anti xss library , and I noticed that for some reason it removes the <ul> . I can’t understand why. For example:

  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?

+7
source share
1 answer

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

@ Paradise Cheng, greetings

+1
source

All Articles