From 0f6b203d349ea233355b4aa8553ba2bb240bc92d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Sat, 27 Feb 2021 14:53:30 +0100 Subject: [PATCH] Embrace HTML coming from Comic Vine --- YACReaderLibrary/comic_vine/comic_vine_dialog.cpp | 2 +- YACReaderLibrary/qml/ComicInfoView.qml | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) 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 {