aboutsummaryrefslogtreecommitdiff
path: root/src/browsertab.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/browsertab.cpp')
-rw-r--r--src/browsertab.cpp7
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 &mdash;)
+ QTextDocument title;
+ title.setHtml(b[0]);
+ this->page_title = title.toPlainText();
}
}
}