Try:
$yourname = CGI::escape($yourname);
-Original Message-
From: David Kaufman [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 1:13 PM
To: Byron Wise; Perl-Win32-Users
Subject: Re: Encoding HTML in hidden inputs
"Byron Wise" <[EMAIL PROTECTED]> wrote:
>
"Byron Wise" <[EMAIL PROTECTED]> wrote:
> I have a form that allows the user to input html.
> After they submit I'm needing to put that value in a
> hidden field and wait for them to fill out the second
> page before processing.
> What is the best method of encoding the html. It
> seems that the
- Original Message -
From: "Byron Wise" <[EMAIL PROTECTED]>
To: "Perl-Win32-Users"
<[EMAIL PROTECTED]>
Sent: Monday, March 11, 2002 12:55 PM
Subject: Encoding HTML in hidden inputs
> I have a form that allows the user to input html.
> After they submit I'm needing to put that value in a
> What is the best method of encoding the html. It
> seems that the problem is double quotes but I'd rather
> have a more robust solution than just handeling the
> quotes.
>
> any suggestions?
(this may not be the 'best' method, but...)
Try:
# warning: untested!
# an anonymous subref that