mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
fix #902
This commit is contained in:
parent
5cb1b6fe8e
commit
13306031e2
|
@ -25,7 +25,7 @@ QTextBlockFormat ChatAction::nameFormat, ChatAction::dateFormat;
|
||||||
|
|
||||||
QString ChatAction::toHtmlChars(const QString &str)
|
QString ChatAction::toHtmlChars(const QString &str)
|
||||||
{
|
{
|
||||||
static QList<QPair<QString, QString>> replaceList = {{"&","&"}, {">",">"}, {"<","<"}};
|
static QList<QPair<QString, QString>> replaceList = {{"&","&"}, {">",">"}, {"<","<"}, {" ", " "}}; // {"&","&"} should be always first
|
||||||
QString res = str;
|
QString res = str;
|
||||||
|
|
||||||
for (auto &it : replaceList)
|
for (auto &it : replaceList)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user