fix: 处理回复中的html标签和内容

(cherry picked from commit daf27a76ab)
This commit is contained in:
CaptainB 2024-12-11 10:22:49 +08:00 committed by shaohuzhang1
parent d6f36b3263
commit 76a65d6ef1
2 changed files with 0 additions and 6 deletions

View File

@ -154,10 +154,7 @@ function markdownToPlainText(md: string) {
function removeFormRander(text: string) {
return text
.replace('你好,请先填写下面表单内容:', '')
.replace('请先填写以下表单并点击提交按钮', '')
.replace(/<form_rander>[\s\S]*?<\/form_rander>/g, '')
.replace('填写后请点击【提交】按钮进行提交。', '')
.trim()
}

View File

@ -133,10 +133,7 @@ function markdownToPlainText(md: string) {
function removeFormRander(text: string) {
return text
.replace('你好,请先填写下面表单内容:', '')
.replace('请先填写以下表单并点击提交按钮', '')
.replace(/<form_rander>[\s\S]*?<\/form_rander>/g, '')
.replace('填写后请点击【提交】按钮进行提交。', '')
.trim()
}