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?
chobo2
source share