0

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

Jack
  • 3,913
  • 8
  • 41
  • 66
  • 1
    sorry, i have to add spaces between a m p or so, otherwise, it won't show – Jack Nov 01 '10 at 10:50
  • 1
    They are not unicode, they are html encoded strings. & is an ampersand (&), " is a quotation mark ("), etc. – Jason Coco Nov 01 '10 at 10:52
  • Thanksn Jason, then how can i use a unified method to remove them? in C#, there is a official method to remove them. but how can I find in objective-C – Jack Nov 01 '10 at 11:17

1 Answers1

3

This was answered here:

Converting & to & in Objective-C

Community
  • 1
  • 1
Vincent Osinga
  • 1,043
  • 7
  • 15