mirror of
http://112.124.100.131/ebiz-ai/ebiz-base-ai.git
synced 2025-12-06 17:36:48 +08:00
feat: 优化打字机的显示效果
This commit is contained in:
@@ -96,8 +96,8 @@ export default {
|
||||
text = text.replace(/^<\w+>/g, '')
|
||||
// 尝试把 </ 标签去除
|
||||
// text = text.replace(/[</]+$/g, '')
|
||||
text = text.replace(/<[^>]*>/g, '')
|
||||
// console.log(text);
|
||||
// <\/?([\w\s]+)?(?!>)$
|
||||
text = text.replace(/<\/?([\w\s='"]+)?(?!>)$/g, '')
|
||||
|
||||
|
||||
return text
|
||||
|
||||
Reference in New Issue
Block a user