From issues-return-14261-apmail-struts-issues-archive=struts.apache.org@struts.apache.org Tue Nov 17 20:29:37 2009 Return-Path: Delivered-To: apmail-struts-issues-archive@minotaur.apache.org Received: (qmail 74916 invoked from network); 17 Nov 2009 20:29:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Nov 2009 20:29:37 -0000 Received: (qmail 4356 invoked by uid 500); 17 Nov 2009 20:29:37 -0000 Delivered-To: apmail-struts-issues-archive@struts.apache.org Received: (qmail 4272 invoked by uid 500); 17 Nov 2009 20:29:36 -0000 Mailing-List: contact issues-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list issues@struts.apache.org Received: (qmail 4264 invoked by uid 99); 17 Nov 2009 20:29:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Nov 2009 20:29:36 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Nov 2009 20:29:34 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9A5F0234C1F0 for ; Tue, 17 Nov 2009 12:29:13 -0800 (PST) Message-ID: <906194287.1258489753630.JavaMail.jira@brutus> Date: Tue, 17 Nov 2009 20:29:13 +0000 (UTC) From: "Dale Newfield (JIRA)" To: issues@struts.apache.org Subject: [jira] Updated: (WW-3332) Alternate escape values for the "property" tag In-Reply-To: <516128477.1258393753264.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 2265bf7ad70cb93affdfde3e15287371 X-Virus-Checked: Checked by ClamAV on 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 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.