string a="<body style="text-align:justify"><p>"+
"&nbsp;</p>"+
"<p>"+
"<a href="44" style="color: red">my web site</a></p>"+
"<p>"+
"T&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; est</a></p>"+
"<p>"+
"&#39;</p>"+
"</body>";
如何避免這種情況?wp7顯示字符串在web broser controll
目前的輸出是這樣的:my web site test
我使用Web瀏覽器控制,我的代碼是:
webBrowser1.NavigateToString(a);
我的電流輸出是& nbsp是否這樣我怎麼能刪除嗎?
你提的問題是非常不清楚。我們不知道你想達到什麼目的,或者你爲什麼首先得到' '。此外,您發佈的代碼不會編譯。請閱讀http://tinyurl.com/so-hints –