Enable quote blocks and HTML comments

This commit is contained in:
Cohee1207 2023-08-05 12:29:37 +03:00
parent ef8aef7994
commit 6ddfcc7a06

View File

@ -1252,8 +1252,8 @@ function messageFormatting(mes, ch_name, isSystem, isUser) {
mes = fixMarkdown(mes); mes = fixMarkdown(mes);
} }
if (this_chid != undefined && !isSystem) //if (this_chid != undefined && !isSystem)
mes = mes.replaceAll("<", "&lt;").replaceAll(">", "&gt;"); //for welcome message // mes = mes.replaceAll("<", "&lt;").replaceAll(">", "&gt;"); //for welcome message
if ((this_chid === undefined || this_chid === "invalid-safety-id") && !selected_group) { if ((this_chid === undefined || this_chid === "invalid-safety-id") && !selected_group) {
mes = mes mes = mes
.replace(/\*\*(.+?)\*\*/g, "<b>$1</b>") .replace(/\*\*(.+?)\*\*/g, "<b>$1</b>")