Re: Extended escape modifier

From: Date: Fri, 29 Jun 2001 14:14:01 +0000
Subject: Re: Extended escape modifier
References: 1 2 3  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1091@lists.php.net to get a copy of this message
On Fri, 29 Jun 2001, Monte Ohrt wrote: > the js escapement is just a convenience. you can do this: > > onMouseover='{$var|escape:"js"}' > > instead of > > onMouseover='{$var|str_replace:"'":"\'"}' > > If you have an argument about this on the next release, post one to the > list. Why not just use: {$var|addslashes} -Andrei * Gun manufacturers don't make bad products, bad parents do. *

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