Skip to content

Commit

Permalink
make sure that HTML is stripped
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisballinger committed Mar 29, 2012
1 parent d3cd8da commit bf04a38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Off the Record/OTRBuddy.m
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ -(void)receiveMessage:(NSString *)message
//NSLog(@"received: %@",message);
if (message) {
// Strip the shit out of it, but hoepfully you're talking with someone who is trusted in the first place
NSString *rawMessage = [[[[message stringByStrippingHTML]stringByConvertingHTMLToPlainText]stringByEncodingHTMLEntities:YES] stringByLinkifyingURLs];
NSString *rawMessage = [[[[message stringByStrippingHTML]stringByConvertingHTMLToPlainText]stringByEncodingHTMLEntities] stringByLinkifyingURLs];
self.lastMessage = rawMessage;

NSString *username = [NSString stringWithFormat:@"<FONT SIZE=%d COLOR=\"#ff0000\"><b>%@:</b></FONT>",[self fontSize],self.displayName];
Expand Down

0 comments on commit bf04a38

Please sign in to comment.