diff --git a/src/controllers/ConversationsController.ts b/src/controllers/ConversationsController.ts index 5626a6c..5889c72 100644 --- a/src/controllers/ConversationsController.ts +++ b/src/controllers/ConversationsController.ts @@ -2,6 +2,7 @@ import { RequestHandler } from "../entities/RequestHandler"; import { ConversationsHelper } from "../helpers/ConversationsHelper"; import { Conversation, BaseConversation } from "../entities/Conversation"; import { UserHelper } from "../helpers/UserHelper"; +import { removeHTMLNodes } from "../utils/StringUtils"; /** * Conversations controller @@ -33,7 +34,7 @@ export class ConversationsController { const conv : BaseConversation = { ownerID: h.getUserId(), - name: name == "false" ? "" : name, + name: name == "false" ? "" : removeHTMLNodes(name), following: h.postBool("follow"), members: members, }