mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-27 19:22:15 -05:00
remove ascii control chars when creating xml
This commit is contained in:
parent
829720409d
commit
85c82d9b3b
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user