Skip Menu |

This queue is for tickets about the HTML-Stripper CPAN distribution.

Report information
The Basics
Id: 8127
Status: new
Priority: 0/
Queue: HTML-Stripper

People
Owner: Nobody in particular
Requestors: a.boulart [...] imedia.ru
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.02
Fixed in: (no value)



Subject: 2 bugs
Hello, I reckon you already know about these but just in case... 1. Last word gets cut off from stripped text, when there is no HTML closing tag. 2. I can't seem to use the same stripper object several times. New stripped text is appended to previous stripped text. The following illustrates what I'm saying: #!/usr/bin/perl use HTML::Stripper; my $stripper = HTML::Stripper->new(); my $str1 = $stripper->strip_html( "I spent my vacation in Malibu." ); my $str2 = $stripper->strip_html( "Siberia is cold." ); print "$str1\n$str2\n"; The output is: I spent my vacation in I spent my vacation in Malibu.Siberia is