Class ExceptionMapperUtil
java.lang.Object
com.atlassian.crowd.plugin.rest.exception.mapper.ExceptionMapperUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Strips out characters which cannot be legally represented in XML document.
-
Method Details
-
stripNonValidXMLCharacters
Strips out characters which cannot be legally represented in XML document. Following is excerpted from Wikipedia:- Unicode code points in the following ranges are valid in XML 1.0 documents:[9] U+0009, U+000A, U+000D: these are the only C0 controls accepted in XML 1.0; U+0020–U+D7FF, U+E000–U+FFFD: this excludes some (not all) non-characters in the BMP (all surrogates, U+FFFE and U+FFFF are forbidden); U+10000–U+10FFFF: this includes all code points in supplementary planes, including non-characters.- Parameters:
in
- input string.- Returns:
- cleansed string.
-