Alternative to HttpUtility for .NET 3.5 SP1 client framework?

后端 未结 7 2212
温柔的废话
温柔的废话 2020-12-30 08:31

It\'d be really nice to target my Windows Forms app to the .NET 3.5 SP1 client framework. But, right now I\'m using the HttpUtility.HtmlDecode and

7条回答
  •  独厮守ぢ
    2020-12-30 08:58

    I’d strongly not recommend rolling your own encoding. I’d use the Microsoft Anti-Cross Site Scripting Library which is very small (v1.5 is ~30kb) if HttpUtility.HtmlEncode isn’t available.

    As for decoding, maybe you could use the decoding routine from Mono?

提交回复
热议问题