From 6219b4ea1aee01e9d4a218ac3520d9d095f94f61 Mon Sep 17 00:00:00 2001 From: klarkxy <278370456@qq.com> Date: Fri, 6 Dec 2024 17:00:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=B8=80=E4=B8=AAif=E8=BF=9B?= =?UTF-8?q?=E8=A1=8C=E6=9D=A1=E4=BB=B6=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/template/syzoj/problem.php | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/web/template/syzoj/problem.php b/web/template/syzoj/problem.php index 4ea35a3..5ae76ff 100644 --- a/web/template/syzoj/problem.php +++ b/web/template/syzoj/problem.php @@ -121,15 +121,11 @@ if ($pr_flag) { " . - bbcode_to_html( - // htmlentities( - $str - // , ENT_QUOTES, 'UTF-8') - ) - . "" - ; + $s = $str; + if (strpos($s, "class='md") !== false) // 没找到,那就加上 + $s = "" . $s .""; + $s = bbcode_to_html($s); + return $s; } ?>