diff --git a/CHANGELOG.md b/CHANGELOG.md index 34ca206c..5e0e53f4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ Version counting is based on semantic versioning (Major.Feature.Patch) ### YACReaderLibrary * New search engine. * New `manga` field added to comics and folders to tag content as manga, any content added to a manga folder will become manga automatically. +* Support for HTML in comic synopsis, this fixes the synopsis when it comes from Comic Vine with HTML tags. ## 9.7.1 ### YACReader diff --git a/YACReaderLibrary/comic_vine/comic_vine_dialog.cpp b/YACReaderLibrary/comic_vine/comic_vine_dialog.cpp index 2bbcd3bf..f922fa83 100644 --- a/YACReaderLibrary/comic_vine/comic_vine_dialog.cpp +++ b/YACReaderLibrary/comic_vine/comic_vine_dialog.cpp @@ -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()) { diff --git a/YACReaderLibrary/qml/ComicInfoView.qml b/YACReaderLibrary/qml/ComicInfoView.qml index f3b408f5..63aa2899 100644 --- a/YACReaderLibrary/qml/ComicInfoView.qml +++ b/YACReaderLibrary/qml/ComicInfoView.qml @@ -258,8 +258,14 @@ Rectangle { font.pixelSize: 15 wrapMode: Text.WordWrap horizontalAlignment: Text.AlignJustify - text: comicInfo.synopsis + text: '' + comicInfo.synopsis + '' visible: comicInfo.synopsis + textFormat: Text.RichText } Text { diff --git a/custom_widgets/whats_new_dialog.cpp b/custom_widgets/whats_new_dialog.cpp index b5c4b429..2fad753b 100644 --- a/custom_widgets/whats_new_dialog.cpp +++ b/custom_widgets/whats_new_dialog.cpp @@ -56,6 +56,7 @@ YACReader::WhatsNewDialog::WhatsNewDialog(QWidget *parent) "YACReaderLibrary
" " • New fuzzy search engine. Type to search into any field of the database, or target specific content \"read:false manga:true filename:3x3\", read more about how it works in the web site.
" " • New `manga` field added to comics and folders to tag content as manga, any content added to a manga folder will become manga automatically.
" + " • Support for HTML in comic synopsis, this fixes the synopsis when it comes from Comic Vine with HTML tags.
" "
" "Server
" " • New `manga` field is sent to YACReader for iOS, so comics tagged as manga will be recognized as such when reading remotely or importing comics.
"