1
0
forked from Leaf/amber-ui

改进 自动剔除标签

This commit is contained in:
ivamp 2024-09-26 23:55:20 +08:00
parent b58f90da96
commit c3ebaabb1a

View File

@ -368,8 +368,15 @@ function sendText() {
return; return;
} }
let mdContent = html2markdown(textContent)
// html
mdContent = mdContent.replace(/<[^>]*>/g, "");
// //
sendMessage("user", html2markdown(textContent)); sendMessage("user", mdContent);
// //
input.innerText = ""; input.innerText = "";