mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Embrace HTML coming from Comic Vine
This commit is contained in:
parent
e5526de0af
commit
0f6b203d34
@ -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()) {
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user