diff options
Diffstat (limited to 'src/browsertab.cpp')
| -rw-r--r-- | src/browsertab.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/browsertab.cpp b/src/browsertab.cpp index aa082d4..fdc6fc3 100644 --- a/src/browsertab.cpp +++ b/src/browsertab.cpp @@ -530,10 +530,9 @@ void BrowserTab::renderPage(const QByteArray &data, const MimeType &mime) QStringList b = a[1].split("</title>", Qt::KeepEmptyParts, Qt::CaseInsensitive); if (b[0] != a[1]) { - QString title = b[0]; - this->page_title = title; - - // TODO: Escape HTML sequences in title (such as —) + QTextDocument title; + title.setHtml(b[0]); + this->page_title = title.toPlainText(); } } } |
