[
https://issues.apache.org/jira/browse/LANG-516?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12733042#action_12733042
]
Henri Yandell commented on LANG-516:
------------------------------------
XML escaping is:
new AggregateTranslator(
new LookupTranslator(EntityArrays.BASIC_ESCAPE()),
new LookupTranslator(EntityArrays.APOS_ESCAPE()),
NumericEntityEscaper.above(0x7f)
);
Unescaping is:
new AggregateTranslator(
new LookupTranslator(EntityArrays.BASIC_UNESCAPE()),
new LookupTranslator(EntityArrays.APOS_UNESCAPE()),
new NumericEntityUnescaper()
);
Questions raised have been whether to escape some of the characters below 0x32,
and whether it should be escaping all the characters above 0x7f. One suggestion
has been a need for XML_1_0 and XML_1_1 variants.
> Define standard for escape/unescape XML
> ---------------------------------------
>
> Key: LANG-516
> URL: https://issues.apache.org/jira/browse/LANG-516
> Project: Commons Lang
> Issue Type: Sub-task
> Reporter: Henri Yandell
> Fix For: 3.0
>
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.