Java Mailing List Archive

Home » FreeMarker-user »

[FreeMarker-user] ?js_string double escapes - is this wanted ?

Grégory Joseph


Replies: Find Java Web Hosting

Author LoginPost Reply
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 ?



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!
FreeMarker-user mailing list
©2008 - Jax Systems, LLC, U.S.A.