You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Musachy Barroso (JIRA)" <ji...@apache.org> on 2009/04/16 18:14:06 UTC
[jira] Resolved: (WW-2332) Escape values for JavaScript
[ https://issues.apache.org/struts/browse/WW-2332?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Musachy Barroso resolved WW-2332.
---------------------------------
Resolution: Fixed
Fix Version/s: (was: Future)
2.1.6
this was fixed in 2.1.6. The "property" tag now has a escapeJavaScript attribute
> Escape values for JavaScript
> ----------------------------
>
> Key: WW-2332
> URL: https://issues.apache.org/struts/browse/WW-2332
> Project: Struts 2
> Issue Type: New Feature
> Components: Other
> Affects Versions: 2.1.1
> Reporter: Benjamin McCann
> Fix For: 2.1.6
>
>
> 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
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.