mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-25 17:22:55 +00:00
fix: Remove video tags during AI conversation voice playback
This commit is contained in:
parent
4ffdb46b0a
commit
fe4004aa77
|
|
@ -219,6 +219,8 @@ function markdownToPlainText(md: string) {
|
|||
.replace(/`(.*?)`/g, '$1')
|
||||
// 移除代码块 ```code```
|
||||
.replace(/```[\s\S]*?```/g, '')
|
||||
// 移除video标签
|
||||
.replace(/<video>[\s\S]*?<\/video>/g, '')
|
||||
// 移除html标签
|
||||
.replace(/<[^>]+>/g, '')
|
||||
// 移除多余的换行符
|
||||
|
|
|
|||
Loading…
Reference in New Issue