Craig Cardimon <[EMAIL PROTECTED]> writes:

> I'm using HTML::TokeParser to remove HTML. This functions very well
> when tags are contained on one line.
> 
> What happens when you're reading a file line by line, and the HTML tag
> is split between lines? The HTML I'm dealing with is sometimes broken
> up. For instance, I'll get lines beginning with "size=2>" which is the
> end of a tag that began on the previous line.
> 
> Any suggestions or recommendation on cleaning up -- as in removing -- 
> this kind of "broken" HTML?

If you give HTML::TokeParser the whole document to work on it should
not have any problems with tags that span lines.  How do you pass the
HTML document to the parser?

Regards,
Gisle
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to