I'm working on sipxecs project and we're using Tapestry 4.1.5. We have an
issue where any items using single quotes in .properties files that is
passed as a string parameter to a javascript is not interpreted properly.

i.e.

confirm.delete=don't delete this line

I've tried:
confirm.delete=don\'t delete this line
which doesn't work.

I've also tried:
confirm.delete=don\u005c't delete this line
which works, but we don't want to impose this on .properties writers. 

I've put in a workaround where I do a StringEscapeUtils.escapeJavaScript()
on the string parameter.

Is there any other way of doing this other than the above?

Thanks,
Paul.
-- 
View this message in context: 
http://www.nabble.com/single-quotes-causes-problems-when-passed-into-javascript-from-properties-file-tp20092178p20092178.html
Sent from the Tapestry - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to