diff --git a/src/fetcher.cpp b/src/fetcher.cpp index a92beb62..7cdcd573 100644 --- a/src/fetcher.cpp +++ b/src/fetcher.cpp @@ -23,6 +23,7 @@ #include #include #include +#include #include @@ -75,7 +76,10 @@ void Fetcher::fetch(QUrl url) query.prepare(QStringLiteral("INSERT INTO Entries VALUES (:feed, :id, :title, :content, :created, :updated, :link);")); query.bindValue(QStringLiteral(":feed"), url.toString()); query.bindValue(QStringLiteral(":id"), entry->id()); - query.bindValue(QStringLiteral(":title"), entry->title()); + + QTextDocument title; + title.setHtml(entry->title()); + query.bindValue(QStringLiteral(":title"), title.toPlainText()); query.bindValue(QStringLiteral(":created"), static_cast(entry->datePublished())); query.bindValue(QStringLiteral(":updated"), static_cast(entry->dateUpdated())); query.bindValue(QStringLiteral(":link"), entry->link());