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