Extended escaping in Serializer
Status: Alpha
Brought to you by:
nwalsh
The standard serializer does not escape german special
charecters, so the method escape(String str)
could/should be changed to
/**
*
* <p>
* Escapes characters from the output.
* </p>
*
* @param str output string
* @return
*/
private String escape(String str) {
str = stringReplace(str, "&", "&");
str = stringReplace(str, "<", "<");
str = stringReplace(str, ">", ">");
str = stringReplace(str, "ä", "ä");
str = stringReplace(str, "ö", "ö");
str = stringReplace(str, "ü", "ü");
str = stringReplace(str, "ß", "ß");
str = stringReplace(str, "Ä", "Ä");
str = stringReplace(str, "Ü", "Ü");
str = stringReplace(str, "Ö", "Ö");
return str;
}