On Mon, 8 Jul 2002, Andrew Ho wrote:

> I think adding a generic escape=quote is a bad idea. That doesn't give any
> context, and JavaScript strings quote quotes way differently from (for
> example) HTML or SQL strings. Within JavaScript there are multiple quoting

well, for HTML quoting, you'd use escape=HTML.  SQL, well, I hope you 
aren't using HTML::Template for SQL, but then again...

escape=quote would basically do ' => \' and " => \" - quoting single and 
double quotes that way, you can use the same tmpl_var in your javascript 
and also your html without a problem.

I agree that the sub may be better, especially for future extensibility



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Oh, it's good to be a geek.
http://thinkgeek.com/sf
_______________________________________________
Html-template-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users

Reply via email to