Re: Extended escape modifier

From: Date: Fri, 29 Jun 2001 14:28:33 +0000
Subject: Re: Extended escape modifier
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1098@lists.php.net to get a copy of this message
Ok, for now we'll just add the quote escapement. Now for the logic behind that: case 'quotes': // escape unescaped single quotes return preg_replace("%(?<!\\\\)'%", "\\'", $string); Does this look good? (only escape if not already escaped) Andrei Zmievski wrote: > > On Fri, 29 Jun 2001, Monte Ohrt wrote: > > > I don't think so.. it's not an escapement. > > > > and the xml stuff? > > If we do xml escapement, it needs to be very well defined. > > -Andrei > > "Everything has its wonders, even darkness and silence, and I learn, > whatever state I may be in, therein to be content." - Helen Keller > > --- > You are currently subscribed to smarty as: monte@ispi.net > To unsubscribe send a blank email to $subst('Email.Unsub') > Visit Smarty's homepage at > http://www.phpinsider.com/php/code/Smarty/ -- Monte Ohrt <monte@ispi.net> http://www.ispi.net/

« previous php.smarty.general (#1098) next »