From 71e2800b59996deb074c98cdb204af548bb155e7 Mon Sep 17 00:00:00 2001 From: Patrick Schneider Date: Sun, 7 Jan 2018 20:50:39 +0100 Subject: [PATCH] Fix #125 invalid character (backspace) in output --- Bluepill-cli/Bluepill-cli/Bluepill/Reporters/BPReporters.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Bluepill-cli/Bluepill-cli/Bluepill/Reporters/BPReporters.m b/Bluepill-cli/Bluepill-cli/Bluepill/Reporters/BPReporters.m index 883eb4be..5fa01b5d 100644 --- a/Bluepill-cli/Bluepill-cli/Bluepill/Reporters/BPReporters.m +++ b/Bluepill-cli/Bluepill-cli/Bluepill/Reporters/BPReporters.m @@ -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:@"<" options:NSLiteralSearch range:NSMakeRange(0, [string length])]; + // Replace UTF-8 Backspace + [string replaceOccurrencesOfString:@"\x08" withString:@"" options:NSLiteralSearch range:NSMakeRange(0, [string length])]; return [NSString stringWithString:string]; }