http://www.perlmonks.org?node_id=98413

aijin has asked for the wisdom of the Perl Monks concerning the following question:

I'm working on an online submission form, and I don't want any HTML in the entries, so I figured I'd just strip it out with HTML::FormatText.

Just a snippet of the code...

my $t = $q->param('confession'); $t = HTML::FormatText->new->format(parse_html($t)); print $t;

Well, it seems to be stripping the tags out just fine. But here's the weird thing...it's also stripping out the last word. Has anyone else run into this or am I just doing something wrong here?

-aijin

Replies are listed 'Best First'.
Re: HTML::FormatText stripping last word
by merlyn (Sage) on Jul 20, 2001 at 19:01 UTC