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/11/16 18:49:13 UTC

[jira] Created: (WW-3332) Add "escapeXml" and "escapeCsv" to the "property" tag

Add  "escapeXml" and "escapeCsv" to the "property" tag
------------------------------------------------------

                 Key: WW-3332
                 URL: https://issues.apache.org/struts/browse/WW-3332
             Project: Struts 2
          Issue Type: New Feature
          Components: Other
    Affects Versions: 2.1.8, 2.1.6
            Reporter: Musachy Barroso
             Fix For: 2.2.0


when "escape" attribute is set to true, values are html escaped, which might not be suitable for xml escaping. 

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


[jira] Updated: (WW-3332) Alternate escape values for the "property" tag

Posted by "Dale Newfield (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-3332?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dale Newfield updated WW-3332:
------------------------------

    Summary: Alternate escape values for the "property" tag  (was: Add  "escapeXml" and "escapeCsv" to the "property" tag)

that sounds good, can someone open a  jira ticket so we don't depend
on my short term memory  :) ?

musachy

On Tue, Nov 17, 2009 at 10:08 AM, Dale Newfield <da...@newfield.org> wrote:
> > Chris Pratt wrote:
>> >>
>> >> Or even better, add an escape attribute that takes as it's values "html",
>> >> "xml", or "javascript".  It would be very nice to have it be able to
>> >> properly encode at least single and double quotes in JavaScript as well as
>> >> HTML and XML, and using a more generic and extensible attribute name is
>> >> always a good idea.
> >
> > For example, it could even be implemented such that an attribute
> > escape="javascript,xml" allows the specification of multiple escape
> > mechanisms including an ordering in which they'll be applied.

So for reverse compatibility, the default would now be escape="xml"

> Alternate escape values for the "property" tag
> ----------------------------------------------
>
>                 Key: WW-3332
>                 URL: https://issues.apache.org/struts/browse/WW-3332
>             Project: Struts 2
>          Issue Type: New Feature
>          Components: Other
>    Affects Versions: 2.1.6, 2.1.8
>            Reporter: Musachy Barroso
>             Fix For: 2.2.0
>
>
> when "escape" attribute is set to true, values are html escaped, which might not be suitable for xml escaping. 

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


[jira] Resolved: (WW-3332) Add "escapeXml" and "escapeCsv" to the "property" tag

Posted by "Musachy Barroso (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-3332?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Musachy Barroso resolved WW-3332.
---------------------------------

    Resolution: Fixed

> Add  "escapeXml" and "escapeCsv" to the "property" tag
> ------------------------------------------------------
>
>                 Key: WW-3332
>                 URL: https://issues.apache.org/struts/browse/WW-3332
>             Project: Struts 2
>          Issue Type: New Feature
>          Components: Other
>    Affects Versions: 2.1.6, 2.1.8
>            Reporter: Musachy Barroso
>             Fix For: 2.2.0
>
>
> when "escape" attribute is set to true, values are html escaped, which might not be suitable for xml escaping. 

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


[jira] Reopened: (WW-3332) Alternate escape values for the "property" tag

Posted by "Musachy Barroso (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-3332?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Musachy Barroso reopened WW-3332:
---------------------------------

      Assignee: Musachy Barroso

> Alternate escape values for the "property" tag
> ----------------------------------------------
>
>                 Key: WW-3332
>                 URL: https://issues.apache.org/struts/browse/WW-3332
>             Project: Struts 2
>          Issue Type: New Feature
>          Components: Other
>    Affects Versions: 2.1.6, 2.1.8
>            Reporter: Musachy Barroso
>            Assignee: Musachy Barroso
>             Fix For: 2.2.0
>
>
> when "escape" attribute is set to true, values are html escaped, which might not be suitable for xml escaping. 

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