Re: Replacement for CGI.pm escape and unescape
On Jun 7, 2007, at 9:57 AM, cfaust-dougot wrote: Hi All, I'm running the latest mp2 with Libapreq. Is there some method to duplicate CGI.pm's escape and unescape methods? I found escape_path, but obviously that isn't the same thing. I'm trying to remove CGI.pm from all my code and these are the last 2 things I need to take care of. I use URI::Escape http://search.cpan.org/~gaas/URI-1.35/URI/Escape.pm its small, and comes in the std perl distro
Re: Replacement for CGI.pm escape and unescape
Jonathan Vanasco wrote: > I use URI::Escape > > http://search.cpan.org/~gaas/URI-1.35/URI/Escape.pm > > its small, and comes in the std perl distro Good for URI escaping, but that's not the same thing as HTML escaping, which is what CGI's escape/unescape do right? -- Michael Peters Developer Plus Three, LP
RE: Replacement for CGI.pm escape and unescape
Yes, I'm trying to HTML escape/unescape, although looking at URI::Escape it seems like it might work. I'll have to give it a try. Thanks!! From: Michael Peters [mailto:[EMAIL PROTECTED] Sent: Thu 6/7/2007 10:32 AM To: Jonathan Vanasco Cc: cfaust-dougot; modperl@perl.apache.org Subject: Re: Replacement for CGI.pm escape and unescape Jonathan Vanasco wrote: > I use URI::Escape > > http://search.cpan.org/~gaas/URI-1.35/URI/Escape.pm > > its small, and comes in the std perl distro Good for URI escaping, but that's not the same thing as HTML escaping, which is what CGI's escape/unescape do right? -- Michael Peters Developer Plus Three, LP
Re: Replacement for CGI.pm escape and unescape
On 7 Jun 2007, at 16:05, cfaust-dougot wrote: Yes, I'm trying to HTML escape/unescape, although looking at URI::Escape it seems like it might work. I'll have to give it a try. There's a lightweight HTML escaper in HTML::Tiny. No unescaper though. -- Andy Armstrong, hexten.net
Re: Replacement for CGI.pm escape and unescape
cfaust-dougot wrote: > Yes, I'm trying to HTML escape/unescape, although looking at URI::Escape it > seems like it might work. I'll have to give it a try. http://perl.apache.org/docs/2.0/user/porting/compat.html#C_Apache__Util__escape_html___ http://search.cpan.org/dist/HTML-Parser/ HTH --Geoff
RE: Replacement for CGI.pm escape and unescape
That's what I needed!! Thanks Geoff! -Chris From: Geoffrey Young [mailto:[EMAIL PROTECTED] Sent: Thu 6/7/2007 11:40 AM To: cfaust-dougot Cc: Michael Peters; Jonathan Vanasco; modperl@perl.apache.org Subject: Re: Replacement for CGI.pm escape and unescape cfaust-dougot wrote: > Yes, I'm trying to HTML escape/unescape, although looking at URI::Escape it > seems like it might work. I'll have to give it a try. http://perl.apache.org/docs/2.0/user/porting/compat.html#C_Apache__Util__escape_html___ http://search.cpan.org/dist/HTML-Parser/ HTH --Geoff
Re: Replacement for CGI.pm escape and unescape
On Jun 7, 2007, at 10:32 AM, Michael Peters wrote: Good for URI escaping, but that's not the same thing as HTML escaping, which is what CGI's escape/unescape do right? oh, my bad. then the module is HTML::Entities // Jonathan Vanasco | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | CEO/Founder SyndiClick Networks | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | FindMeOn.com - The cure for Multiple Web Personality Disorder | Web Identity Management and 3D Social Networking | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | RoadSound.com - Tools For Bands, Stuff For Fans | Collaborative Online Management And Syndication Tools | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Re: Replacement for CGI.pm escape and unescape
On Thu, Jun 07, 2007 at 10:32:54AM -0400, Michael Peters wrote: > Jonathan Vanasco wrote: > > > I use URI::Escape > > > > http://search.cpan.org/~gaas/URI-1.35/URI/Escape.pm > > > > its small, and comes in the std perl distro > > Good for URI escaping, but that's not the same thing as HTML escaping, which > is > what CGI's escape/unescape do right? CGI's escape/unescape do URI escaping. CGI's escapeHTML and unescapeHTML do HTML escaping. Ronald
Re: Replacement for CGI.pm escape and unescape
On Jun 7, 2007, at 2:47 PM, Ronald J Kimball wrote: CGI's escape/unescape do URI escaping. CGI's escapeHTML and unescapeHTML do HTML escaping. Thanks for the clarification. In my circle of friends/colleagues, we've always referred to URLs as escape/unescape and HTML as encode/unencode // Jonathan Vanasco | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | CEO/Founder SyndiClick Networks | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | FindMeOn.com - The cure for Multiple Web Personality Disorder | Web Identity Management and 3D Social Networking | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | RoadSound.com - Tools For Bands, Stuff For Fans | Collaborative Online Management And Syndication Tools | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -