struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin McCann (JIRA)" <>
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
             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
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:

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message