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

Thorsten Meinl commented on LANG-1531:
--------------------------------------

I strongly believe that it *is* a bug. If any of these characters is not 
escaped in an attribute then the parser that reads such an XML file will 
[normalize them to 
spaces|https://www.w3.org/TR/1998/REC-xml-19980210#AVNormalize] (instead of tab 
or line break).

 

> escapeXml10 does not escape newline and tab characters to #xA
> -------------------------------------------------------------
>
>                 Key: LANG-1531
>                 URL: https://issues.apache.org/jira/browse/LANG-1531
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: lang.*
>    Affects Versions: 3.8.1, 3.10
>            Reporter: devson
>            Priority: Major
>
> escapexml10 in StringEscapeUtils does not escape newline(line feed) and tab 
> characters to #xA but it should escape them as specified in 
> [https://www.w3.org/TR/xml/#sec-line-ends]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to