Added quick fix to show the plain name and title in the chat lobby.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6470 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2013-07-01 20:35:07 +00:00
parent af5c31a4f5
commit 30c4a6ef93
8 changed files with 35 additions and 21 deletions

View file

@ -792,3 +792,13 @@ bool RsHtml::makeEmbeddedImage(const QImage &originalImage, QString &embeddedIma
}
return true;
}
QString RsHtml::plainText(const QString &text)
{
return Qt::escape(text);
}
QString RsHtml::plainText(const std::string &text)
{
return Qt::escape(QString::fromUtf8(text.c_str()));
}