From b3f23cf2f0e84c81879735ab063d9a8882255605 Mon Sep 17 00:00:00 2001 From: klarkxy <278370456@qq.com> Date: Sat, 10 May 2025 16:14:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8text=E8=80=8C=E9=9D=9Ehtml?= =?UTF-8?q?=E4=BF=9D=E8=AF=81markdown=E4=B8=8D=E4=BC=9A=E8=A2=AB=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/template/syzoj/problem.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/template/syzoj/problem.php b/web/template/syzoj/problem.php index c892832..87e29ff 100644 --- a/web/template/syzoj/problem.php +++ b/web/template/syzoj/problem.php @@ -513,7 +513,7 @@ if ($pr_flag) { $(".md").each(function () { - $(this).html(marked.parse($(this).html())); + $(this).text(marked.parse($(this).html())); const md = window.markdownit(); md.set({ @@ -521,7 +521,7 @@ if ($pr_flag) { linkify: true, typographer: true, }) - $(this).html(md.render($(this).html())); + $(this).text(md.render($(this).html())); }); // adding note for ```input1 ```output1 in description