iOS 字符串删除 DOM

iOS  string 删除 包含的 DOM

 

   NSMutableString *mutableString = [NSMutableString stringWithString:responseString];
            
            NSString *string = @"\xEF\xBB\xBF";
            while ([mutableString rangeOfString:string].location != NSNotFound) {
                NSRange range = [mutableString rangeOfString:string];
                [mutableString deleteCharactersInRange:range];
            }

  http://www.cnblogs.com/Ionatan/p/4551875.html 

posted @ 2015-06-04 15:03  码匠阿杰  阅读(722)  评论(0编辑  收藏  举报