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