HttpUtility.HtmlEncode doesn't encode everything

后端 未结 7 951
南方客
南方客 2020-12-16 13:45

I am interacting with a web server using a desktop client program in C# and .Net 3.5. I am using Fiddler to see what traffic the web browser sends, and emulate that. Sadly t

7条回答
  •  Happy的楠姐
    2020-12-16 14:13

    The AntiXSS library from Microsoft correctly encodes these characters.

    AntiXSS on Codeplex

    Nuget package (best way to add as a reference)

提交回复
热议问题