Skip to content

Commit 95048cf

Browse files
committed
formatted synopsis in Anime/Manga objects
1 parent 445e332 commit 95048cf

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/main/java/net/beardbot/myanimelist/model/anime/Anime.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import lombok.Data;
2020
import net.beardbot.myanimelist.model.adapter.InputDateAdapter;
2121
import net.beardbot.myanimelist.model.adapter.SemicolonSeperatedListAdapter;
22+
import net.beardbot.myanimelist.model.adapter.MarkdownAndHtmlRemovalAdapter;
2223

2324
import javax.xml.bind.annotation.XmlAccessType;
2425
import javax.xml.bind.annotation.XmlAccessorType;
@@ -66,6 +67,7 @@ public class Anime {
6667
private Date endDate;
6768

6869
@XmlElement(name = "synopsis")
70+
@XmlJavaTypeAdapter(MarkdownAndHtmlRemovalAdapter.class)
6971
private String synopsis;
7072

7173
@XmlElement(name = "image")

src/main/java/net/beardbot/myanimelist/model/manga/Manga.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import lombok.Data;
2020
import net.beardbot.myanimelist.model.adapter.InputDateAdapter;
2121
import net.beardbot.myanimelist.model.adapter.SemicolonSeperatedListAdapter;
22+
import net.beardbot.myanimelist.model.adapter.MarkdownAndHtmlRemovalAdapter;
2223

2324
import javax.xml.bind.annotation.XmlAccessType;
2425
import javax.xml.bind.annotation.XmlAccessorType;
@@ -69,6 +70,7 @@ public class Manga {
6970
private Date endDate;
7071

7172
@XmlElement(name = "synopsis")
73+
@XmlJavaTypeAdapter(MarkdownAndHtmlRemovalAdapter.class)
7274
private String synopsis;
7375

7476
@XmlElement(name = "image")

0 commit comments

Comments
 (0)