package net.somethingdreadful.MAL.api.ALModels.AnimeManga;

import com.google.gson.annotations.SerializedName;

import net.somethingdreadful.MAL.api.ALModels.Profile;

import java.io.Serializable;
import java.util.ArrayList;

import lombok.Getter;
import lombok.Setter;

public class Reviews implements Serializable {
    @Setter
    @Getter
    private int id;
    @Setter
    @Getter
    @SerializedName("rating_amount")
    private int ratingAmount;
    @Setter
    @Getter
    private String summary;
    @Setter
    @Getter
    @SerializedName("user_rating")
    private int userRating;
    @Setter
    @Getter
    private String text;
    @Setter
    @Getter
    private int score;
    @Setter
    @Getter
    private Profile user;
    @Setter
    @Getter
    private String date;
    @Setter
    @Getter
    private int rating;
    @Setter
    @Getter
    private Anime anime;
    @Setter
    @Getter
    private Manga manga;

    private net.somethingdreadful.MAL.api.BaseModels.AnimeManga.Reviews createBaseModel() {
        net.somethingdreadful.MAL.api.BaseModels.AnimeManga.Reviews model = new net.somethingdreadful.MAL.api.BaseModels.AnimeManga.Reviews();
        model.setId(getId());
        model.setRating(getScore());
        model.setReview(getText().replaceAll("(\r\n|\n)", "<br>"));
        model.setUser(getUser().createBaseModel());
        model.setDate(getDate());
        if (getAnime() != null)
            model.setAnime(getAnime().createBaseModel());
        if (getManga() != null)
            model.setManga(getManga().createBaseModel());
        return model;
    }

    public static ArrayList<net.somethingdreadful.MAL.api.BaseModels.AnimeManga.Reviews> convertBaseArray(ArrayList<Reviews> ALArray) {
        ArrayList<net.somethingdreadful.MAL.api.BaseModels.AnimeManga.Reviews> base = new ArrayList<>();
        for (Reviews reviews : ALArray) {
            base.add(reviews.createBaseModel());
        }
        return base;
    }
}

@@ -1241,65 +1241,546 @@
     
-model.setReview(getText().replaceAll(%22(%5Cr%5Cn%7C%5Cn)%22, %22%3Cbr%3E%22)
+String comment = getText().replaceAll(%22(%5Cr%5Cn%7C%5Cn)%22, %22%3Cbr%3E%22);%0A        comment = comment.replaceAll(%22__((.%7C%5C%5Cn)+?)__%22, %22%3Cb%3E$1%3C/b%3E%22);%0A        comment = comment.replaceAll(%22_((.%7C%5C%5Cn)+?)_%22, %22%3Ci%3E$1%3C/i%3E%22);%0A        comment = comment.replaceAll(%22~~~((.%7C%5C%5Cn)+?)~~~%22, %22%3Ccenter%3E$1%3C/center%3E%22);%0A        comment = comment.replaceAll(%22(.*)##(.*)%22, %22%3Ch1%3E$2%3C/h1%3E%22);%0A        comment = comment.replaceAll(%22(.*)#(.*)%22, %22%3Ch1%3E$2%3C/h1%3E%22);%0A        comment = comment.replaceAll(%22@(%5C%5Cw+)%22, %22%3Cfont color=%5C%22#022f70%5C%22%3E%3Cb%3E@$1%3C/b%3E%3C/font%3E%22);%0A        model.setReview(comment
 );%0A 

Enable more styles for reviews (AL)