This text I don't need.
This long test that is at least 201 characters in length is what I want to parse.
Here is a list that I want to retrieve in this "div" tag.
List:
item 1
item 2
item 4
####
while( $token = $stream->get_token) {
if ($token->[0] eq 'S' and $token->[1] eq 'div' and ($token->[2]{'class'} || '') eq 'text12') {
$description = $stream->get_trimmed_text('/div');
$num = length($description);
if ($num > 200) {
print "$description
";
}
}
}
####
#description value:
Here is a list that I want to retrieve in this "div" tag.
List:item 1 item 2 item 4
#I want to take the description value and print it out as HTML but since the tags aren't entact, I can't properly display the list in a browser.