Source/AIXMLChatlogConverter.m
changeset 2597 07e07f9788a6
parent 1946 866f1f27b315
child 2799 ba94093fbed8
equal deleted inserted replaced
2596:387091087c49 2597:07e07f9788a6
   258 					NSMutableString *mutableMessage = [[inputFileString substringWithRange:NSMakeRange(messageStart, end - messageStart - 11)] mutableCopy];
   258 					NSMutableString *mutableMessage = [[inputFileString substringWithRange:NSMakeRange(messageStart, end - messageStart - 11)] mutableCopy];
   259 					[mutableMessage replaceOccurrencesOfString:@"&"
   259 					[mutableMessage replaceOccurrencesOfString:@"&"
   260 													withString:@"&"
   260 													withString:@"&"
   261 													   options:NSLiteralSearch
   261 													   options:NSLiteralSearch
   262 														 range:NSMakeRange(0, [mutableMessage length])];
   262 														 range:NSMakeRange(0, [mutableMessage length])];
       
   263 					// Escape anchor tags
       
   264 					[mutableMessage replaceOccurrencesOfString:@"#"
       
   265 													withString:@"#"
       
   266 													   options:NSLiteralSearch
       
   267 														 range:NSMakeRange(0, [mutableMessage length])];
   263 					message = [mutableMessage autorelease];
   268 					message = [mutableMessage autorelease];
   264 				}
   269 				}
   265 				NSString *shownSender = (senderAlias ? senderAlias : sender);
   270 				NSString *shownSender = (senderAlias ? senderAlias : sender);
   266 				NSString *cssClass;
   271 				NSString *cssClass;
   267 				NSString *displayName = nil, *longDisplayName = nil;
   272 				NSString *displayName = nil, *longDisplayName = nil;