?js_string double escapes - is this wanted ?

Grégory Joseph <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
Hi there,

Just noticed that ${"don't do this"?js_string?js_string} would output "don\\'t do this". Shouldn't the built-in be smart enough to notice when quotes are already escaped ? Or is there a good reason for this ?

I'd rather it doesn't double-escape, so I can add ?js_string to my templates safely, even if some of the model's code is already doing escaping for some reason.

Thoughts ?

Cheers,

-greg

------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of 
discussion for anyone considering optimizing the pricing and packaging model 
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.