template doesn't accept escaped double quote in string #429

Closed
martindrapeau opened this Issue Jan 10, 2012 · 1 comment

Comments

Projects
None yet
2 participants

Interpolation of the following Javascript inside a template escapes the backslash breaking the code:
<%=checked?"checked=\"checked\"":""%>
You get this error:

missing : in conditional expression
... checked?"checked=\\"checked\\"":"" ... 

jashkenas closed this in cdf43ea Jan 23, 2012

Owner

jashkenas commented Jan 23, 2012

Thanks for reporting this. Fixed in the above patch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment