[ 
https://issues.apache.org/jira/browse/LANG-1010?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14632857#comment-14632857
 ] 

Henri Yandell commented on LANG-1010:
-------------------------------------

A bit sloppy, but I was thinking of something akin to not escaping an & when it 
forms the start of one of /&[a-zA-Z0-9]*;/ and /&#[0-9]*;/

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)

Reply via email to