Converting HTML entities to Unicode Characters in C#

前端 未结 6 2087
心在旅途
心在旅途 2020-12-15 15:23

I found similar questions and answers for Python and Javascript, but not for C# or any other WinRT compatible language.

The reason I think I need it, is because I\'

6条回答
  •  半阙折子戏
    2020-12-15 16:16

    Use HttpUtility.HtmlDecode() .Read on msdn here

    decodedString = HttpUtility.HtmlDecode(myEncodedString)
    

提交回复
热议问题