Objective-C
Objective-C
StringBuilder EntityDecode
Demonstrates the Chilkat StringBuilder EntityDecode method to decode HTML entities.Chilkat Objective-C Downloads
#import <NSString.h>
#import <CkoStringBuilder.h>
// Decode the following HTML entities, replacing each with the character represented.
NSString *s = @"é é é 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]);