electronicMacks has asked for the wisdom of the Perl Monks concerning the following question:
Fellow Monks:
I’m writing a CGI that includes a large <textarea> field as an input. I need the final output of the script to be simple clean text, but some of the users are going to be pasting their input from MS Word, bringing unholy characters into play.
I’m not concerned about really weird symbols, like the smiley face, but I am concerned about “smart quotes” for example. (Quotes that know if they're begining or ending)
Is there a Perl library, or Unix command, that will strip the funny characters away and replace “smart quotes” with "simple quotes"?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Stripping funny characters
by extremely (Priest) on Dec 12, 2000 at 06:03 UTC | |
Re: Stripping funny characters
by chromatic (Archbishop) on Dec 12, 2000 at 10:35 UTC | |
by extremely (Priest) on Dec 12, 2000 at 14:41 UTC | |
Re: Stripping funny characters
by wardk (Deacon) on Dec 12, 2000 at 20:39 UTC | |
Re: Stripping funny characters
by kilinrax (Deacon) on Dec 12, 2000 at 18:41 UTC |
Back to
Seekers of Perl Wisdom