2013-05-22 2 views
-1

HTML 특수 문자를 실제 값으로 인코딩하는 방법은 무엇입니까?HTML 특수 문자를 실제 값으로 디코딩하는 방법은 무엇입니까?

데이터 :

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 
+0

나는 당신이 당신의 자신의 니틴 http://meta.stackexchange.com/questions/에 질문을 삭제할 수 있습니다 생각 42265/how-can-i-delete-my-question –

+0

이상한 편집을 되 돌린 ... – Joetjah

+0

이 질문을 중복 된 것으로 삭제하십시오 –

답변

1

당신은에서 제공

string output = WebUtility.HtmlDecode(Data); 

사용할 수 있습니다네임 스페이스

1

사용 HttpUtility.HtmlDecode 또는 WebUtility.HtmlDecode

string s = "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"; 
var s2 = HttpUtility.HtmlDecode(s); 
var s3 = WebUtility.HtmlDecode(s); 
3

사용 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); 
1
string res = Server.HtmlDecode("ntique 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"); 
관련 문제