Skip to content

Commit 7d82aa0

Browse files
committed
Rename cleanupHTML: to escapeHTML:
1 parent 3f416bb commit 7d82aa0

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

GLFileView.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
- (void)showFile;
3232
- (void)didLoad;
3333
- (NSString *)parseBlame:(NSString *)txt;
34-
+ (NSString *)cleanupHTML:(NSString *)txt;
34+
+ (NSString *)escapeHTML:(NSString *)txt;
3535
+ (NSString *)parseDiff:(NSString *)txt;
3636
+ (NSString *)parseDiffTree:(NSString *)txt withStats:(NSMutableDictionary *)stats;
3737
+ (NSString *)getFileName:(NSString *)line;

GLFileView.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ - (void) showFile
110110
if(startFile==@"fileview"){
111111
fileTxt=[file textContents:&theError];
112112
if(!theError)
113-
fileTxt=[GLFileView cleanupHTML:fileTxt];
113+
fileTxt=[GLFileView escapeHTML:fileTxt];
114114
}else if(startFile==@"blame"){
115115
fileTxt=[file blame:&theError];
116116
if(!theError)
@@ -240,7 +240,7 @@ - (void)closeView
240240
[super closeView];
241241
}
242242

243-
+ (NSString *) cleanupHTML:(NSString *)txt
243+
+ (NSString *) escapeHTML:(NSString *)txt
244244
{
245245
NSMutableString *newTxt = [NSMutableString stringWithString:txt];
246246
[newTxt replaceOccurrencesOfString:@"&" withString:@"&" options:NSLiteralSearch range:NSMakeRange(0, [newTxt length])];
@@ -299,7 +299,7 @@ + (NSString *)parseDiffTree:(NSString *)txt withStats:(NSMutableDictionary *)sta
299299

300300
+ (NSString *)parseDiff:(NSString *)txt
301301
{
302-
txt=[self cleanupHTML:txt];
302+
txt=[self escapeHTML:txt];
303303

304304
NSMutableString *res=[NSMutableString string];
305305
NSScanner *scan=[NSScanner scannerWithString:txt];
@@ -507,7 +507,7 @@ +(BOOL)isStartBlock:(NSString *)line
507507

508508
- (NSString *) parseBlame:(NSString *)txt
509509
{
510-
txt=[GLFileView cleanupHTML:txt];
510+
txt=[GLFileView escapeHTML:txt];
511511

512512
NSArray *lines = [txt componentsSeparatedByString:@"\n"];
513513
NSString *line;

PBWebHistoryController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ - (NSString *)parseHeader:(NSString *)txt withRefs:(NSString *)badges
168168
}else{
169169
if (subj) {
170170
NSString *trimmedLine = [line stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];
171-
[subject appendString:[NSString stringWithFormat:@"%@<br/>",[GLFileView cleanupHTML:trimmedLine]]];
171+
[subject appendString:[NSString stringWithFormat:@"%@<br/>",[GLFileView escapeHTML:trimmedLine]]];
172172
}else{
173173
NSArray *comps=[line componentsSeparatedByString:@" "];
174174
if([comps count]==2){

0 commit comments

Comments
 (0)