perf: 优化消息&符号

This commit is contained in:
kuaifan
2022-12-02 13:36:40 +08:00
parent 3a3ecd920f
commit 9cf3503a84
2 changed files with 2 additions and 0 deletions

View File

@@ -542,6 +542,7 @@ class WebSocketDialogMsg extends AbstractModel
if (!$preserveHtml) {
$text = strip_tags($text);
$text = str_replace(" ", " ", $text);
$text = str_replace("&", "&", $text);
}
return $text;
}