Skip to content

Commit

Permalink
allow bad xml characters
Browse files Browse the repository at this point in the history
  • Loading branch information
REAndroid committed Feb 2, 2024
1 parent dce685d commit 99fe04f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/reandroid/xml/kxml2/KXmlSerializer.java
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ private void writeEscaped(String s, int quot) throws IOException {
writeSurrogate(c, s.charAt(i + 1));
++i;
} else {
reportInvalidCharacter(c);
append("&#" + ((int) c) + ";");
}
}
}
Expand Down

0 comments on commit 99fe04f

Please sign in to comment.