struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin McCann (JIRA)" <j...@apache.org>
Subject [jira] Created: (WW-2332) Escape values for JavaScript
Date Mon, 19 Nov 2007 20:29:33 GMT
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


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.


Mime
View raw message