diff --git a/src/main/java/net/nullpunkt/exceljson/pojo/ExcelWorkbook.java b/src/main/java/net/nullpunkt/exceljson/pojo/ExcelWorkbook.java index 75f9a89..df4c461 100644 --- a/src/main/java/net/nullpunkt/exceljson/pojo/ExcelWorkbook.java +++ b/src/main/java/net/nullpunkt/exceljson/pojo/ExcelWorkbook.java @@ -21,7 +21,7 @@ public void addExcelWorksheet(ExcelWorksheet sheet) { public String toJson(boolean pretty, boolean isWriteToFile) { try { if(pretty && isWriteToFile) { - return new GsonBuilder().setPrettyPrinting().create().toJson(this); + return new GsonBuilder().setPrettyPrinting().disableHtmlEscaping().create().toJson(this); } else if(pretty) { return new ObjectMapper().writer().withDefaultPrettyPrinter().writeValueAsString(this); } else {