使用c#将Html字符转换为WP7中的原始字符

时间:2013-05-08 11:32:17

标签: c# windows-phone-7 windows-phone

我需要用法语更改以下字符:

C'est au tour d'

到原始字符串:

C'est au tour d'

我该如何解决这个问题?该字符串显示文本块控件

1 个答案:

答案 0 :(得分:3)

 var str = HttpUtility.HtmlDecode("C'est au tour d'"); //System.Web

var str = WebUtility.HtmlDecode("C'est au tour d'"); //System.Net