remove ascii control chars when creating xml

This commit is contained in:
Daniel Gultsch 2016-06-19 00:07:15 +02:00
parent 829720409d
commit 85c82d9b3b
1 changed files with 1 additions and 1 deletions

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;
}
}