Re: [SMARTY-DEV] Very small request
| From: | messju mohr | Date: | Mon, 25 Aug 2003 09:02:26 +0000 |
| Subject: | Re: [SMARTY-DEV] Very small request | ||
| References: | 1 2 3 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-1807@lists.php.net to get a copy of this message | ||
On Mon, Aug 25, 2003 at 12:47:49PM +0400, Konstantin wrote:
> > > JavaScript strings can be quoted by double as well as
> > > single quotes. Please, add double quotes escaping in
> > > modifier |escape:"javascript".
> >
> > do you have a good idea how to call this particular
> > escape-type?
>
> Well, it's not a new escape-type, it could be added to
> "javascript" type.
>
> These two lines are equal in javascript:
> document.write(' \' \" ');
> document.write(" \' \" ");
hmm, but they are not equal in html-context:
<body onload="document.write(' \' \" ');">
works, but
<body onload="document.write(" \' \" ");">
AFAIK not.
> Konstantin A. Pelepelin