我想从我的字符串中删除标签。
例如,
NSSTring *str = @"<null>";
My expected output is null.
所以我想删除 HTML 标签。
所以请指导我。
谢谢。
.
最佳答案
尝试,
str = [str stringByReplacingOccurrencesOfString:@"<" withString:@""];
str = [str stringByReplacingOccurrencesOfString:@">" withString:@""];
关于iphone - 如何从 iPhone 的字符串中删除标签?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4553681/