struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dale Newfield (JIRA)" <j...@apache.org>
Subject [jira] Updated: (WW-3332) Alternate escape values for the "property" tag
Date Tue, 17 Nov 2009 20:29:13 GMT

     [ 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 <dale@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.


Mime
View raw message