Struts 2
  1. Struts 2
  2. WW-3332

Alternate escape values for the "property" tag

    Details

    • Type: New Feature New Feature
    • Status: Reopened
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.1.6, 2.1.8
    • Fix Version/s: 3.0
    • Component/s: Other
    • Labels:
      None

      Description

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

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        47m 14s 1 musachy 16/Nov/09 18:35
        Resolved Resolved Reopened Reopened
        1d 2h 1m 1 musachy 17/Nov/09 20:36
        Lukasz Lenart made changes -
        Fix Version/s 3.x [ 12319158 ]
        Fix Version/s 2.2.x [ 12314679 ]
        Lukasz Lenart made changes -
        Assignee musachy [ musachy ]
        Fix Version/s 2.2.x [ 12314679 ]
        Fix Version/s 2.2.0 [ 12314680 ]
        Jeff Turner made changes -
        Project Import Mon Feb 01 01:17:42 UTC 2010 [ 1264987062082 ]
        musachy made changes -
        Status Resolved [ 5 ] Reopened [ 4 ]
        Resolution Fixed [ 1 ]
        Assignee Musachy Barroso [ musachy ]
        Dale Newfield made changes -
        Summary Add "escapeXml" and "escapeCsv" to the "property" tag Alternate escape values for the "property" tag
        Hide
        Dale Newfield added a comment -

        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"

        Show
        Dale Newfield added a comment - 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"
        musachy made changes -
        Field Original Value New Value
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]
        musachy created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            musachy
          • Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:

              Development