remove ascii control chars when creating xml
This commit is contained in:
parent
ebc585457b
commit
5f5cdd8696
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue