Skip to content

Commit

Permalink
Disable html escaping (contentful#288)
Browse files Browse the repository at this point in the history
  • Loading branch information
rafalniski authored Sep 14, 2023
1 parent b7093e1 commit 873595e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/com/contentful/java/cda/ResourceFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ static <T extends CDAResource> List<T> fromArrayToItems(CDAArray array) {
public static Gson createGson() {
return new GsonBuilder()
.registerTypeAdapter(CDAResource.class, new ResourceDeserializer())
.disableHtmlEscaping()
.create();
}
}

0 comments on commit 873595e

Please sign in to comment.