From 344554b3e26e53d6aebdef395d4881a30aa0ca7d Mon Sep 17 00:00:00 2001 From: klarkxy <278370456@qq.com> Date: Fri, 11 Apr 2025 13:42:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0reinfo=E9=87=8C=E7=9A=84?= =?UTF-8?q?=E8=BD=AC=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/template/syzoj/reinfo.php | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/web/template/syzoj/reinfo.php b/web/template/syzoj/reinfo.php index 2cbff80..923905e 100644 --- a/web/template/syzoj/reinfo.php +++ b/web/template/syzoj/reinfo.php @@ -30,32 +30,14 @@ margin-bottom: -10px !important; } -" . $s . ""; - // 删除代码块里的
防止引起混乱 - $s = preg_replace_callback('/(```.*?```|`[^`]*`)/s', function ($matches) { - return str_replace('
', '', $matches[0]); - }, $s); - // 特殊转义 - $s = str_replace("
", "\n", $s); - return $s; - } - ?> +

-
-
+
echo htmlentities($view_reinfo,ENT_QUOTES,"UTF-8") +