Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的应用程序有很多跨站点脚本漏洞。我需要一个通用的 C# 函数,这样可以避免\消除所有跨站点脚本。
Server.HtmlEncode()将使它们无害。