Refactored code to be more rigorous Unicode-wise.

This commit is contained in:
Ludovic Marcotte committed 2014-09-24 14:14:25 -04:00
1 parent 1c60ab2337
commit 3675220756
4 files changed
+49 -31

No files matched your search

+1 -2
View File
@@ -2081,8 +2081,7 @@ static NSArray *childRecordFields = nil;
// Make sure the sent value is sanitized.
NSString *sanitizedValue;
sanitizedValue = [[*currentValue componentsSeparatedByCharactersInSet: [*currentValue safeCharacterSet]]
componentsJoinedByString: @""];
sanitizedValue = [*currentValue safeString];
propertyValue = [NSString stringWithFormat: @"<%@>%@</%@>",
nodeTag, sanitizedValue, nodeTag];
propDict = properties200;