C# 如何将HTML特殊字符解码为其实际值?
如何将HTML特殊字符编码为其实际值 数据:C# 如何将HTML特殊字符解码为其实际值?,c#,.net,C#,.net,如何将HTML特殊字符编码为其实际值 数据: Antique bronze of an archer by Franz Iffland Literature:
“Bronzes, sculptors and founders” by H. Berman, Abage. 
“Dictionnaire illustré des sculpteurs animaliers &
Antique bronze of an archer by Franz Iffland Literature:
“Bronzes, sculptors and founders” by H. Berman, Abage. 
“Dictionnaire illustré des sculpteurs animaliers & fondeurs de l’antiquité à nos jours “ by Jean Charles Hachet. Argus Valentines. 
“The dictionary of sculptors in bronze” by James Mackay. Antique collectors club. 
 Fedex shipping: $ 185
Antique bronze of an archer by Franz Iffland Literature:
“Bronzes, sculptors and founders” by H. Berman, Abage.
“Dictionnaire illustré des sculpteurs animaliers & fondeurs de l’antiquité à nos jours “ by Jean Charles Hachet. Argus Valentines.
“The dictionary of sculptors in bronze” by James Mackay. Antique collectors club.
Fedex shipping: $ 185
所需输出:
Antique bronze of an archer by Franz Iffland Literature:
“Bronzes, sculptors and founders” by H. Berman, Abage. 
“Dictionnaire illustré des sculpteurs animaliers & fondeurs de l’antiquité à nos jours “ by Jean Charles Hachet. Argus Valentines. 
“The dictionary of sculptors in bronze” by James Mackay. Antique collectors club. 
 Fedex shipping: $ 185
Antique bronze of an archer by Franz Iffland Literature:
“Bronzes, sculptors and founders” by H. Berman, Abage.
“Dictionnaire illustré des sculpteurs animaliers & fondeurs de l’antiquité à nos jours “ by Jean Charles Hachet. Argus Valentines.
“The dictionary of sculptors in bronze” by James Mackay. Antique collectors club.
Fedex shipping: $ 185
你可以用
string output = WebUtility.HtmlDecode(Data);
它位于System.Net
命名空间下 使用或
使用
HtmlDecode
:
string source ="Antique bronze of an archer by Franz Iffland Literature:
“Bronzes, sculptors and founders” by H. Berman, Abage. 
“Dictionnaire illustré des sculpteurs animaliers & fondeurs de l’antiquité à nos jours “ by Jean Charles Hachet. Argus Valentines. 
“The dictionary of sculptors in bronze” by James Mackay. Antique collectors club. 
 Fedex shipping: $ 185";
string decoded= WebUtility.HtmlDecode(source);
我想你可以自己删除这个问题。尼廷回滚了奇怪的编辑…删除这个问题,因为它是重复的。标记它,然后离开它。不要做奇怪的事。遵守网站的规则。