diff --git a/Source/Core/DolphinQt/Config/LogWidget.cpp b/Source/Core/DolphinQt/Config/LogWidget.cpp
index ae7cb70984..771acf7289 100644
--- a/Source/Core/DolphinQt/Config/LogWidget.cpp
+++ b/Source/Core/DolphinQt/Config/LogWidget.cpp
@@ -210,10 +210,11 @@ void LogWidget::Log(LogTypes::LOG_LEVELS level, const char* text)
break;
}
- m_log_queue.push(QStringLiteral("%1 %3")
- .arg(QString::fromStdString(std::string(text).substr(0, TIMESTAMP_LENGTH)),
- QString::fromStdString(color),
- QString::fromStdString(std::string(text).substr(TIMESTAMP_LENGTH))));
+ m_log_queue.push(
+ QStringLiteral("%1 %3")
+ .arg(QString::fromStdString(std::string(text).substr(0, TIMESTAMP_LENGTH)),
+ QString::fromStdString(color),
+ QString::fromStdString(std::string(text).substr(TIMESTAMP_LENGTH)).toHtmlEscaped()));
}
void LogWidget::closeEvent(QCloseEvent*)