开发者

iphone - how to remove the html encoded string from nsstring?

开发者 https://www.devze.com 2023-01-22 16:52 出处:网络
I obtain some text from Internet. There are sometimes characters like \"&a m p;\", \"&q u o t;\", etc in teh text.

I obtain some text from Internet. There are sometimes characters like "&a m p;", "&q u o t;", etc in teh text.

I guess they are some开发者_Python百科 kind of unicode characters in Html. they are HTML encoded string, thanks for jason to point out.

How should I filter all these kinds of things out of the text? I don't want any HTML related code characters. by the way, I am not talking about the HTML tags in the text, only these kinds of unicode things.

thanks


This was answered here:

Converting & to & in Objective-C

0

精彩评论

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

关注公众号