Sample code for 30+ languages & platforms
Objective-C

StringBuilder EntityDecode

Demonstrates the Chilkat StringBuilder EntityDecode method to decode HTML entities.

Chilkat Objective-C Downloads

Objective-C
#import <NSString.h>
#import <CkoStringBuilder.h>

//  Decode the following HTML entities, replacing each with the character represented.
NSString *s = @"&eacute; &#233; &#xE9; Latin small letter e with acute";

CkoStringBuilder *sb = [[CkoStringBuilder alloc] init];

[sb Append: s];
[sb EntityDecode];

//  Output: é é é Latin small letter e with acute
NSLog(@"%@",[sb GetAsString]);