mirror of
https://github.com/kuaifan/dootask.git
synced 2026-01-16 03:58:12 +00:00
perf: 优化消息&符号
This commit is contained in:
parent
3a3ecd920f
commit
9cf3503a84
@ -542,6 +542,7 @@ class WebSocketDialogMsg extends AbstractModel
|
||||
if (!$preserveHtml) {
|
||||
$text = strip_tags($text);
|
||||
$text = str_replace(" ", " ", $text);
|
||||
$text = str_replace("&", "&", $text);
|
||||
}
|
||||
return $text;
|
||||
}
|
||||
|
||||
1
resources/assets/js/functions/web.js
vendored
1
resources/assets/js/functions/web.js
vendored
@ -376,6 +376,7 @@
|
||||
text = text.replace(/<img\s+class="emoticon"[^>]*?>/g, `[${$A.L('动画表情')}]`)
|
||||
text = text.replace(/<img\s+class="browse"[^>]*?>/g, `[${$A.L('图片')}]`)
|
||||
text = text.replace(/ /g," ")
|
||||
text = text.replace(/&/g,"&")
|
||||
return text.replace(/<[^>]+>/g,"")
|
||||
},
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user