Subject: | parse of single text word fails |
When parsing a single text word containing no tokens, HTML::Parser fails
to pass that word to the text handler.
This fails: $p->parse('singleword')
This works: $p->parse('singleword ')
This works: $p->parser('<p>singleword')
Granted, this is a degenerate case, but its causing big problems for me
while trying to strip HTML from strings and one of the source strings
happens to be a single plain text word.
When it fails, there is only a single start_document event with no
content. The text word is never seen.
Thanks!
Matt