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