Built in .NET function for unescaping characters in XML stream?

后端 未结 4 2065
無奈伤痛
無奈伤痛 2020-12-20 12:06

So, I have some data in the form of:

<foo><bar>test</bar></foo>

What .NET classes/f

4条回答
  •  醉话见心
    2020-12-20 12:52

    Use System.Net.WebUtility.HtmlDecode since .NET 4.0 if pretty printing is not important.

提交回复
热议问题