Re: &xxx; thingies
Re: &xxx; thingies
- Subject: Re: &xxx; thingies
- From: Scott Anguish <email@hidden>
- Date: Sat, 17 Nov 2001 06:40:18 -0500
Total lazy man hack here.. (there are better ways to do this.. but
they'd require a big table of the values to map to)
load the NSString into an NSText instance as HTML, and then grab the
string from the text.
Like I said.. TOTAL hack.. (not sure, but it might ruin any
whitespace/returns)
I'd love to see an NSEncoding mode that handled HTML so you could move
between the escaped and unescaped stuff easily...
On Saturday, November 17, 2001, at 01:50 AM, Angela Brett wrote:
Hi,
I know I could do this myself but I'm sure it's already been done. What
should I use to go through an NSString and turn the & etc used in
HTML into the characters they represent? It looks as if the Omniweb
framework can do it, but I haven't figured out how yet. I don't really
want to add all the Omni frameworks to my project just for that, so if
someone could tell me about a simple way of doing it I'd be most
grateful.