开发者

removing • character in string

i tried to read h开发者_运维百科tml contents by striping html tags in a string. when i try to print that string i got • character. can anyone tell me how to remove this character


Use Replace() function of String

 str = "Hello• World"
 str = str.Replace("•", "")  'Hello World


Something like:

stringVal = Encoding.ASCII.GetString(Encoding.ASCII.GetBytes(stringVal)); //Swaps out non-ascii to '?'s.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜