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; } ?>