Strip single <p> tags inside TextHandler rather than actions handler

This commit is contained in:
James Graham
2024-10-05 17:05:36 +00:00
parent a4e9794b13
commit aedba5c650
3 changed files with 29 additions and 20 deletions

View File

@@ -126,11 +126,6 @@ void ActionsHandler::handleMessage(NeoChatRoom *room, QString handledText, ChatB
textHandler.setData(handledText);
handledText = textHandler.handleSendText();
if (handledText.count("<p>"_ls) == 1 && handledText.count("</p>"_ls) == 1) {
handledText.remove("<p>"_ls);
handledText.remove("</p>"_ls);
}
if (handledText.length() == 0) {
return;
}