remove ascii control chars when creating xml

This commit is contained in:
Daniel Gultsch 2016-06-19 00:07:15 +02:00 committed by Christian Schneppe
parent ebc585457b
commit 5f5cdd8696

View file

@ -7,7 +7,7 @@ public class XmlHelper {
content = content.replace(">", ">");
content = content.replace("\"", """);
content = content.replace("'", "'");
content = content.replaceAll("\\p{Cc}&&[^\n\r\t]", "");
content = content.replaceAll("[\\p{Cntrl}&&[^\n\t\r]]", "");
return content;
}
}