Anti XSS Library removing UL tag. Why?
-
26-05-2021 - |
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?
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow