Description
There's not an easy, safe way to escape output for inclusion in JavaScript at the present time.
I'd like to see an attribute added to the property tag, called escapeJavaScript or something similar, which would output a property in JavaScript escaped format (most importantly, single quotes as \').
For more background on why I believe it is necessary you can view the mailing thread:
http://www.nabble.com/Escaping-Characters-in-Struts-Property-Tag-tf4799846.html#a13732294
Attachments
Issue Links
- is duplicated by
-
WW-2555 Add javaScriptEscape attribute to propertyTag
- Closed