摘要:
NSBundle *mainBundle=[NSBundle mainBundle]; NSString * txtPath=[mainBundle pathForResource:@"badytype_index" ofType:@"txt"]; NSString *result=[[NSString alloc] initWithContentsOfFile:... 阅读全文
摘要:
-(NSString *) getHtmlToText:(NSString*) inputString{ NSString *result=[[NSString alloc] init]; result=inputString; NSRegularExpression *reg=[[NSRegularExpression alloc] init]; reg=[[NSRegularExpression alloc] initWithPattern:@"<([^>]+)>" options:NSRegularExpressionCaseInsensitive 阅读全文