0
我有HTML頁面的響應節點解析與
`<cite>www.<b>apple</b>.com/in/</cite>`
我使用圖書館https://github.com/topfunky/hpple/blob/master/「
TFHppleElement * element6 = [childrenArr5 objectAtIndex:0];
NSArray * arr = [element6 childrenWithTagName:@"cite"];
NSLog(@"arr:%@ cnt:%d",arr,[arr count]);
TFHppleElement * element7 = [arr objectAtIndex:0];
NSString * cite = [element7 text];
NSLog(@"cite:%@",cite);
,但我沒有得到整個文本,它只是搶來解析這個「萬維網。」來自,請建議一些內容以獲取標籤中的全部文本。
使內聯類別,所以沒有瓜爾但它應該工作 – 2013-04-06 12:11:52
謝謝,我想用上面的代碼。 – bhavin 2013-04-06 12:28:03