diff --git a/backend/src/main/java/io/metersphere/commons/json/JSONSchemaGenerator.java b/backend/src/main/java/io/metersphere/commons/json/JSONSchemaGenerator.java index 998a833ad7..fe04a92d64 100644 --- a/backend/src/main/java/io/metersphere/commons/json/JSONSchemaGenerator.java +++ b/backend/src/main/java/io/metersphere/commons/json/JSONSchemaGenerator.java @@ -323,7 +323,7 @@ public class JSONSchemaGenerator { JSONObject root = new JSONObject(); generator(jsonSchema, root); // 格式化返回 - Gson gson = new GsonBuilder().serializeNulls().setPrettyPrinting().create(); + Gson gson = new GsonBuilder().serializeNulls().setPrettyPrinting().disableHtmlEscaping().create(); if (root.get("MS-OBJECT") != null) { return gson.toJson(root.get("MS-OBJECT")); }