Browse Source

Revert "fix #902"

@apprb #932
This reverts commit 13306031e2.
pull/930/merge
Dubslow 11 years ago
parent
commit
84dea5e12c
No known key found for this signature in database
GPG Key ID: 3DB8E05315C220AA
  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;"}, {" ", "&nbsp;"}}; // {"&","&amp;"} should be always first
static QList<QPair<QString, QString>> replaceList = {{"&","&amp;"}, {">","&gt;"}, {"<","&lt;"}};
QString res = str;
for (auto &it : replaceList)

Loading…
Cancel
Save