Re: HTML_Javascript_Convert::escapeString

From: Date: Sun, 17 Nov 2002 18:32:22 +0000
Subject: Re: HTML_Javascript_Convert::escapeString
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-10914@lists.php.net to get a copy of this message
works for me. At 05:46 PM 11/17/2002 +0100, Pierre-Alain Joye wrote:
On Sat, 16 Nov 2002 19:01:08 -0800 "culley harrelson" <culley@ml1.net> wrote: Previous patch wasn't working in all situations (posted variables for one...). Updated patch: 52c52,55
<         return addslashes($str);
---
        $lines = explode("\n", $str);
        $lines = array_map('trim', $lines);
        $lines = array_map('addslashes', $lines);
        return implode('\n', $lines);
I took back the 1st version of convert. Updated in CVS, can you give it a try ? tia pa


« previous php.pear.dev (#10914) next »