diff --git a/ui/suite/chat/chat.html b/ui/suite/chat/chat.html
index 9588398..8e22778 100644
--- a/ui/suite/chat/chat.html
+++ b/ui/suite/chat/chat.html
@@ -301,7 +301,7 @@
"";
} else {
// Check if content has HTML (any tag, including comments)
- var hasHtmlTags = /<\/?[a-z][^>]*>|/i.test(content);
+ var hasHtmlTags = /<\/?[a-zA-Z][^>]*>|/i.test(content);
console.log("Bot message - hasHtmlTags:", hasHtmlTags, "content length:", content.length);
var parsed = hasHtmlTags
@@ -739,7 +739,7 @@
var el = document.getElementById(streamingMessageId);
if (el) {
// Check if content has HTML tags
- var hasHtmlTags = /<\/?[a-z][^>]*>|/i.test(content);
+ var hasHtmlTags = /<\/?[a-zA-Z][^>]*>|/i.test(content);
var parsed = hasHtmlTags
? content // Use HTML directly
: (typeof marked !== "undefined" && marked.parse
@@ -754,7 +754,7 @@
var el = document.getElementById(streamingMessageId);
if (el) {
// Check if content has HTML tags
- var hasHtmlTags = /<\/?[a-z][^>]*>|/i.test(currentStreamingContent);
+ var hasHtmlTags = /<\/?[a-zA-Z][^>]*>|/i.test(currentStreamingContent);
var parsed = hasHtmlTags
? currentStreamingContent // Use HTML directly
: (typeof marked !== "undefined" && marked.parse
diff --git a/ui/suite/partials/chat.html b/ui/suite/partials/chat.html
index 74c1d6d..a055c48 100644
--- a/ui/suite/partials/chat.html
+++ b/ui/suite/partials/chat.html
@@ -505,7 +505,7 @@
"";
} else {
// Check if content has HTML (any tag, including comments)
- var hasHtmlTags = /<\/?[a-z][^>]*>|/i.test(content);
+ var hasHtmlTags = /<\/?[a-zA-Z][^>]*>|/i.test(content);
console.log("Bot message - hasHtmlTags:", hasHtmlTags, "content length:", content.length);
var parsed = hasHtmlTags
@@ -943,7 +943,7 @@
var el = document.getElementById(streamingMessageId);
if (el) {
// Check if content has HTML tags
- var hasHtmlTags = /<\/?[a-z][^>]*>|/i.test(content);
+ var hasHtmlTags = /<\/?[a-zA-Z][^>]*>|/i.test(content);
var parsed = hasHtmlTags
? content // Use HTML directly
: (typeof marked !== "undefined" && marked.parse
@@ -958,7 +958,7 @@
var el = document.getElementById(streamingMessageId);
if (el) {
// Check if content has HTML tags
- var hasHtmlTags = /<\/?[a-z][^>]*>|/i.test(currentStreamingContent);
+ var hasHtmlTags = /<\/?[a-zA-Z][^>]*>|/i.test(currentStreamingContent);
var parsed = hasHtmlTags
? currentStreamingContent // Use HTML directly
: (typeof marked !== "undefined" && marked.parse