我有一个脚本
<div class = "des">
<span class = "abc"> </span>
*content*
<div> .... </div>
<div>...</div>
</div>
我想要内容。我用了
NSString * xPath = @"div[@class='des']";
NSArray * array = [Parser searchWithXPathQuery:xPath];
for (TFHppleElement * ele in array)
{
NSString * content = [ele content];
}
但是,我刚收到content =“”。我如何获得内容?