This commit is contained in:
kuaifan
2024-11-25 03:31:41 +08:00
parent e983677e57
commit c0a0f34ff4
87 changed files with 457 additions and 398 deletions

View File

@@ -643,7 +643,7 @@ class WebSocketDialogMsg extends AbstractModel
if (!$preserveHtml) {
$text = str_replace("</p><p>", "</p> <p>", $text);
$text = strip_tags($text);
$text = str_replace(["&nbsp;", "&amp;", "&lt;", "&gt;"], [" ", "&", "<", ">"], $text);
$text = str_replace(["&nbsp;", "&quot;", "&amp;", "&lt;", "&gt;"], [" ", '"', "&", "<", ">"], $text);
$text = preg_replace("/\s+/", " ", $text);
$text = Base::cutStr($text, 50);
}