I have the following code:
int start = [html rangeOfString:@\"class=WordSection1>\"].location + 24; int end = [html rangeOfString:@\"
Parsing HTML using rangeOfString:, NSScanner or regular expressions is futile. It might work for your test case, but it is going to break as soon as the HTML changes.
rangeOfString:
NSScanner
I.e. keep in mind that:
And: Are both identical in terms of the class attribute. Use a proper HTML parser. 0 讨论(0) 查看其它2个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
And:
Are both identical in terms of the class attribute. Use a proper HTML parser. 0 讨论(0) 查看其它2个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
Are both identical in terms of the class attribute.
class
Use a proper HTML parser.