Commit 723a4965 authored by Duhoux Pierre-Louis's avatar Duhoux Pierre-Louis

Fix MangaDex html codes in getInformations

parent f7d1476e
Pipeline #29883153 passed with stages
in 1 minute and 31 seconds
......@@ -66,7 +66,7 @@ if (typeof registerMangaObject === 'function') {
let chapter = await amr.loadJson(this.api + "chapter/" + chid)
let manga = await amr.loadJson(this.api + "manga/" + chapter.manga_id)
let res = {}
res.name = manga.manga.title
res.name = $("<div>" + manga.manga.title + "</div>").text() // to transform html codes
res.currentMangaURL = "https://mangadex.org/manga/" + chapter.manga_id
res.currentChapterURL = "https://mangadex.org/chapter/" + chid
res.language = chapter.lang_code
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment