提交 d805ec15 编写于 作者: S Sergey Toshin

Adds more escape for unreadable characters so parser won't throw exceptions during parse

上级 d5cfdfb5
......@@ -149,6 +149,9 @@ public class StringUtils {
}
private static String escapeXmlChar(char c) {
if(c >= 0 && c <= 0x1F) {
return "\\" + (int) c;
}
switch (c) {
case '&':
return "&amp;";
......@@ -160,6 +163,8 @@ public class StringUtils {
return "&quot;";
case '\'':
return "&apos;";
case '\\':
return "\\\\";
default:
return null;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册