Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

HTML::FormatText stripping last word

by aijin (Monk)
on Jul 20, 2001 at 18:06 UTC ( #98413=perlquestion: print w/ replies, xml ) Need Help??
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

Comment on HTML::FormatText stripping last word
Download Code
Re: HTML::FormatText stripping last word
by merlyn (Sage) on Jul 20, 2001 at 19:01 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://98413]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2014-12-20 17:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (97 votes), past polls