diff --git a/botui/ui/suite/chat/chat-messages.js b/botui/ui/suite/chat/chat-messages.js index fabee638..be0349f6 100644 --- a/botui/ui/suite/chat/chat-messages.js +++ b/botui/ui/suite/chat/chat-messages.js @@ -57,20 +57,18 @@ if (msgId) div.id = msgId; if (sender === "user") { var processedContent = renderMentionInMessage(escapeHtml(content)); div.innerHTML = '
"; -} else { -var cleanContent = stripMarkdownBlocks(content); + } else { + var cleanContent = stripMarkdownBlocks(content); + var hasHtmlTags = /<\/?[a-zA-Z][^>]*>|/i.test(cleanContent); + var parsed; if (msgId) { - parsed = '