Don't convert emotes to HTML
BUG: 461837
This commit is contained in:
@@ -139,6 +139,10 @@ void ActionsHandler::handleMessage()
|
|||||||
|
|
||||||
handledText = CustomEmojiModel::instance().preprocessText(handledText);
|
handledText = CustomEmojiModel::instance().preprocessText(handledText);
|
||||||
handledText = markdownToHTML(handledText);
|
handledText = markdownToHTML(handledText);
|
||||||
|
if (handledText.count("<p>") == 1 && handledText.count("</p>") == 1) {
|
||||||
|
handledText.remove("<p>");
|
||||||
|
handledText.remove("</p>");
|
||||||
|
}
|
||||||
|
|
||||||
if (handledText.length() == 0) {
|
if (handledText.length() == 0) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user