From 3eab570dd43c8226af73b2a14f8098ba3a821dd5 Mon Sep 17 00:00:00 2001 From: Kanishka Goel Date: Wed, 19 Feb 2020 11:59:46 -0500 Subject: [PATCH] disabled html character escaping when writing to file --- src/main/java/net/nullpunkt/exceljson/pojo/ExcelWorkbook.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {