将多行HTML解析加载到一个UITextField中

将多行HTML解析加载到一个UITextField中,html,ios,ios7,rss,xpathquery,Html,Ios,Ios7,Rss,Xpathquery,我有一组HTML代码,如下所示: <div id="content_text"> <p>Year 11 students will be making their course selections online this year. </p> <p>Information about this system has been made available through Tutor sessions. Each student will have

我有一组HTML代码,如下所示:

<div id="content_text">
<p>Year 11 students will be making their course selections online this year.
</p>
<p>Information about this system has been made available through Tutor sessions. Each student will have an individual password. Once subject selections have been made students are to print out a copy of their choices and then have this form signed by themselves, their parent and their Tutor. Forms are to be completed by 22 August. Course books can be borrowed from the Library or are available online.
如您所见,它将只解析第二行。谢谢你的帮助


谢谢,SebOH。

请使用此查询查找给定元素中的所有元素。
div[@id='content\u text']

NSData *tutorialsHtmlDataTwo = [NSData dataWithContentsOfURL:[NSURL URLWithString:_storyLink]];
    TFHpple *tutorialsParserTwo = [TFHpple hppleWithHTMLData:tutorialsHtmlDataTwo];
    NSString *tutorialsXpathQueryStringTwo = @"//div[@id='content_text']/p";
    NSArray *tutorialsNodesTwo = [tutorialsParserTwo searchWithXPathQuery:tutorialsXpathQueryStringTwo];
    NSMutableArray *newTutorialsTwo = [[NSMutableArray alloc] initWithCapacity:0];
    for (TFHppleElement *element in tutorialsNodesTwo) {
        Tutorial *tutorialTwo = [[Tutorial alloc] init];
        [newTutorialsTwo addObject:tutorialTwo];
        tutorialTwo.title = [[element firstChild] content];
        _rssBody.text = [NSString stringWithFormat:@"%@", [[element firstChild] content]];
    }