Browse Source

fix #902

pull/922/head
apprb 11 years ago
parent
commit
13306031e2
No known key found for this signature in database
GPG Key ID: B001911B5B22FB9B
  1. 2
      src/widget/tool/chatactions/chataction.cpp

2
src/widget/tool/chatactions/chataction.cpp

@ -25,7 +25,7 @@ QTextBlockFormat ChatAction::nameFormat, ChatAction::dateFormat; @@ -25,7 +25,7 @@ QTextBlockFormat ChatAction::nameFormat, ChatAction::dateFormat;
QString ChatAction::toHtmlChars(const QString &str)
{
static QList<QPair<QString, QString>> replaceList = {{"&","&amp;"}, {">","&gt;"}, {"<","&lt;"}};
static QList<QPair<QString, QString>> replaceList = {{"&","&amp;"}, {">","&gt;"}, {"<","&lt;"}, {" ", "&nbsp;"}}; // {"&","&amp;"} should be always first
QString res = str;
for (auto &it : replaceList)

Loading…
Cancel
Save