Re: Extended escape modifier
| From: | Monte Ohrt | Date: | Fri, 29 Jun 2001 14:16:32 +0000 |
| Subject: | Re: Extended escape modifier | ||
| References: | 1 2 3 4 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-1092@lists.php.net to get a copy of this message | ||
you could, it's just not as friendly syntax for designers and it won't
work with security enabled unless you allow addslashes specifically.
Andrei Zmievski wrote:
>
> 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. *