Skip to content

HTMLNode contents method cuts text between < and > #24

Open
Alozavr opened this Issue Nov 24, 2013 · 0 comments

1 participant

@Alozavr
Alozavr commented Nov 24, 2013

Hi!

Here is the page for example http://www.amdm.ru/akkordi/adams_bryan/24821/have_you_ever_really_loved_a_woman/

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.