- add - (BOOL) removeObjectsWithClass:(Class _Nonnull) class
- fix - (id _Nonnull) saveLocally:(id _Nonnull) object - upgrade libraries
This commit is contained in:
1 parent
874707e958
commit
99e06e67db
239 files changed
+13154
-6570
No files matched your search
@@ -32,5 +32,7 @@
|
||||
|
||||
- (NSString*) sha512;
|
||||
|
||||
- (NSString*) stringByStrippingHTML;
|
||||
|
||||
|
||||
@end
|
||||
@@ -149,6 +149,14 @@
|
||||
return hash;
|
||||
}
|
||||
|
||||
- (NSString*) stringByStrippingHTML {
|
||||
NSRange r;
|
||||
NSString *s = [self copy];
|
||||
while ((r = [s rangeOfString:@"<[^>]+>" options:NSRegularExpressionSearch]).location != NSNotFound)
|
||||
s = [s stringByReplacingCharactersInRange:r withString:@""];
|
||||
return s;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@end
|
||||
Reference in new issue
Block a user