Embrace HTML coming from Comic Vine

This commit is contained in:
Luis Ángel San Martín 2021-02-27 14:53:30 +01:00
parent e5526de0af
commit 0f6b203d34
2 changed files with 8 additions and 2 deletions

View File

@ -535,7 +535,7 @@ ComicDB ComicVineDialog::parseComicInfo(ComicDB &comic, const QString &json, int
}
if (result.contains("description") && !result.value("description").isNull()) {
comic.info.synopsis = result.value("description").toString().remove(QRegExp("<[^>]*>")); //description
comic.info.synopsis = result.value("description");
}
if (result.contains("character_credits") && !result.value("character_credits").isNull()) {

View File

@ -258,8 +258,14 @@ Rectangle {
font.pixelSize: 15
wrapMode: Text.WordWrap
horizontalAlignment: Text.AlignJustify
text: comicInfo.synopsis
text: '<html><head><style>
a {
color: #FFCB00;
text-decoration:none;
}
</style></head><body>' + comicInfo.synopsis + '</body></html>'
visible: comicInfo.synopsis
textFormat: Text.RichText
}
Text {