Re: HTML-encoded characters mucking up my NSStrings
Re: HTML-encoded characters mucking up my NSStrings
- Subject: Re: HTML-encoded characters mucking up my NSStrings
- From: Dustin Voss <email@hidden>
- Date: Tue, 10 Feb 2004 15:22:23 -0800
On 9 Feb, 2004, at 9:32 PM, Tom Burns wrote:
What is the best way to replace HTML character codes (e.g. é,
 etc.) with their human-readable counterparts in an NSString?
CFStringRef unescapedCF = CFXMLCreateStringByUnescapingEntities (NULL,
(CFStringRef) htmlString, NULL);
NSString *unescaped = [NSString stringWithString: (NSString *)
unescapedCF];
CFRelease (unescapedCF);
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.