how to mark ampersand and apostrophe safe in AntiXss?

697 Views Asked by At

I am currently using the Microsoft AntiXSS library and encoding HTML using HtmlEncode method. According to the documentation, ampersand and apostrophe are not part of the safe list. I want to add them to the safe list. It seems like it is possible by using MarkAsSafe. However, I am not able to figure out how to do so. How can I add these to the safe list?

0

There are 0 best solutions below