Fix line strike.
Fix code block wrapping. Fix replyModel being garbage collected. Reply message in RoomPanelInput is richtext now.
This commit is contained in:
@@ -1,15 +1 @@
|
||||
#include "utils.h"
|
||||
|
||||
QString utils::removeReply(const QString& text) {
|
||||
QString result(text);
|
||||
result.remove(utils::removeRichReplyRegex);
|
||||
result.remove(utils::removeReplyRegex);
|
||||
return result;
|
||||
}
|
||||
|
||||
QString utils::cleanHTML(const QString& text) {
|
||||
QString result(text);
|
||||
result.replace(codePillRegExp, "<i>\\1</i>");
|
||||
result.replace(userPillRegExp, "<b>\\1</b>");
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user