Skip to content

HTMLNode contents method cuts text between < and > #24

Alozavr opened this Issue Nov 24, 2013 · 0 comments

1 participant

Alozavr commented Nov 24, 2013


Here is the page for example

and some code to grab text from there:

NSString *html_song = [[NSString alloc] initWithContentsOfURL:lyrUrl encoding:encoding error:&error];
HTMLParser *songParser = [[HTMLParser alloc] initWithString:html_song error:&error];
HTMLNode *body_song = [songParser body];
HTMLNode *Lyrics_node = [body_song findChildTag:@"pre"] ;
NSString *lyrics = [[NSString alloc] initWithString:[Lyrics_node contents]];

So in lyrics I have not all text^ and piece between '<' and '>' is missing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.