commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (LANG-1010) StringEscapeUtils escapeXml escapes already escaped characters
Date Sun, 19 Jul 2015 16:15:04 GMT

    [ 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)

Mime
View raw message