Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 887
chobo2 Avatar asked Mar 26 '12 19:03

chobo2


1 Answers

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

@Ray Cheng, cheers

like image 58
Tung Avatar answered Oct 18 '22 16:10

Tung