Skip to content

Commit

Permalink
[#11] conversion error
Browse files Browse the repository at this point in the history
  • Loading branch information
jjburka committed Jan 6, 2009
1 parent 54c63a3 commit 3128c63
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Classes/lib/NSString+XMLSerializableSupport.m
Expand Up @@ -14,10 +14,9 @@
@implementation NSString(XMLSerializableSupport)

+ (NSString *)fromXmlString:(NSString *)aString {
NSString *temp = [aString gsub:[NSDictionary dictionaryWithObject:@"&" forKey:@"&"]];
NSDictionary* escapeChars = [NSDictionary dictionaryWithObjectsAndKeys:@"&",@"&",@"\"",@""",@"'",@"'"
,@"<",@"&lt;",@">",@"&gt;",nil];
return [temp gsub:escapeChars];
return [aString gsub:escapeChars];

}

Expand Down

0 comments on commit 3128c63

Please sign in to comment.