Fix initialization of arrays in NSString+Mail.m

This commit is contained in:
Francis Lachapelle
2013-12-23 15:51:36 -05:00
parent bed57af015
commit bd7ad5be16
+6 -10
View File
@@ -83,14 +83,16 @@
{
if ((self = [super init]))
{
images = nil;
ignoreContentTags = nil;
specialTreatmentTags = nil;
ignoreContentTags = [NSArray arrayWithObjects: @"head", @"script",
@"style", nil];
specialTreatmentTags = [NSArray arrayWithObjects: @"body", @"p", @"ul",
@"li", @"table", @"tr", @"td", @"th",
@"br", @"hr", @"dt", @"dd", nil];
[ignoreContentTags retain];
[specialTreatmentTags retain];
ignoreContent = NO;
images = nil;
result = nil;
orderedList = NO;
@@ -108,12 +110,6 @@
if (!htmlToTextContentHandler)
htmlToTextContentHandler = [self new];
[htmlToTextContentHandler setIgnoreContentTags: [NSArray arrayWithObjects: @"head", @"script",
@"style", nil]];
[htmlToTextContentHandler setSpecialTreatmentTags: [NSArray arrayWithObjects: @"body", @"p", @"ul",
@"li", @"table", @"tr", @"td", @"th",
@"br", @"hr", @"dt", @"dd", nil]];
return htmlToTextContentHandler;
}