Skip to content

Commit

Permalink
Fix MobileNativeFoundation#125 invalid character (backspace) in output
Browse files Browse the repository at this point in the history
  • Loading branch information
pschneider committed Jan 7, 2018
1 parent 9ae1878 commit 71e2800
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Bluepill-cli/Bluepill-cli/Bluepill/Reporters/BPReporters.m
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ + (NSString *)xmlSimpleEscape:(NSString *)originalString {
[string replaceOccurrencesOfString:@"'" withString:@"'" options:NSLiteralSearch range:NSMakeRange(0, [string length])];
[string replaceOccurrencesOfString:@">" withString:@">" options:NSLiteralSearch range:NSMakeRange(0, [string length])];
[string replaceOccurrencesOfString:@"<" withString:@"&lt;" options:NSLiteralSearch range:NSMakeRange(0, [string length])];
// Replace UTF-8 Backspace
[string replaceOccurrencesOfString:@"\x08" withString:@"&#x8;" options:NSLiteralSearch range:NSMakeRange(0, [string length])];

return [NSString stringWithString:string];
}
Expand Down

0 comments on commit 71e2800

Please sign in to comment.