Skip to content

Commit

Permalink
Disable HTML escaping in Gson configuration by default
Browse files Browse the repository at this point in the history
HTML escaping is now disabled by default in the Gson builder to prevent automatic escaping of HTML characters. This ensures more readable and human-friendly JSON outputs when serialized.
  • Loading branch information
NonSwag committed Jan 5, 2025
1 parent e81cf9c commit d92786e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion files/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ tasks.compileJava {
}

group = "net.thenextlvl.core"
version = "2.0.0"
version = "2.0.1"

repositories {
mavenCentral()
Expand Down
1 change: 1 addition & 0 deletions files/src/main/java/core/file/format/GsonFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ public GsonFile(IO io, R root, Gson gson) {
*/
public GsonFile(IO io, @Nullable R root, Type type) {
this(io, root, type, new GsonBuilder()
.disableHtmlEscaping()
.setPrettyPrinting()
.serializeNulls()
.create());
Expand Down

0 comments on commit d92786e

Please sign in to comment.