Re: Extended escape modifier
| From: | Andrei Zmievski | Date: | Fri, 29 Jun 2001 14:18:02 +0000 |
| Subject: | Re: Extended escape modifier | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-1093@lists.php.net to get a copy of this message | ||
On Fri, 29 Jun 2001, Monte Ohrt wrote:
> you could, it's just not as friendly syntax for designers and it won't
> work with security enabled unless you allow addslashes specifically.
Not a friendly syntax?? I think having another escape type specifically
for Javascript ('js') is more complicated -- it doesn't tell you exactly
what it's doing and, besides, escaping ' and " is useful for more than
just Javascript.
As far as security, we can simply enable it in Smarty by default.
-Andrei
* If it's never finished, you can't prove it doesn't work. *