GitHub user adamhooper opened a pull request:
https://github.com/apache/commons-lang/pull/15
Add escapeXml10 and escapeXml11
These methods turn any String into valid XML, hacking off characters when
necessary. See https://issues.apache.org/jira/browse/LANG-955
* `escapeXml10` outputs a string that can be included in an XML 1.0 or XML
1.1 document.
* `escapeXml11` outputs a string that can be included in an XML 1.1
document.
Neither method escapes or omits what http://www.w3.org/TR/REC-xml/#charsets
calls "discouraged" characters. Rationale: any valid XML parser will still read
them, even though they're icky.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/adamhooper/commons-lang valid-xml
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/commons-lang/pull/15.patch
----
commit fd294e913c1024fed0db12f7d5c43a8e6a7d4fd7
Author: Adam Hooper <[email protected]>
Date: 2014-01-31T17:17:23Z
Add escapeXml10 and escapeXml11
----
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]