Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F3F3317547 for ; Sun, 19 Jul 2015 16:15:04 +0000 (UTC) Received: (qmail 38994 invoked by uid 500); 19 Jul 2015 16:15:04 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 38885 invoked by uid 500); 19 Jul 2015 16:15:04 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 38869 invoked by uid 99); 19 Jul 2015 16:15:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 Jul 2015 16:15:04 +0000 Date: Sun, 19 Jul 2015 16:15:04 +0000 (UTC) From: "Henri Yandell (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (LANG-1010) StringEscapeUtils escapeXml escapes already escaped characters MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LANG-1010?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14632857#comment-14632857 ] Henri Yandell edited comment on LANG-1010 at 7/19/15 4:14 PM: -------------------------------------------------------------- A bit sloppy, but I was thinking of something akin to not escaping an & when it forms the start of one of: {noformat}/&[a-zA-Z0-9]*;/ and /&#[0-9]*;/{noformat} Agreed that the caller should typically provide unescaped Strings. was (Author: bayard): A bit sloppy, but I was thinking of something akin to not escaping an & when it forms the start of one of: {noformat}/&[a-zA-Z0-9]*;/ and /&#[0-9]\*;/{noformat} Agreed that the caller should typically provide unescaped Strings. > StringEscapeUtils escapeXml escapes already escaped characters > -------------------------------------------------------------- > > Key: LANG-1010 > URL: https://issues.apache.org/jira/browse/LANG-1010 > Project: Commons Lang > Issue Type: New Feature > Components: lang.* > Affects Versions: 3.3 > Reporter: Kaushal Kumar > > StringEscapeUtils escapeXml escapes already escaped characters. > Is there a way to enhance this API to check if the character is not escaped only then escape the character. -- This message was sent by Atlassian JIRA (v6.3.4#6332)