" . $s . "";
// 删除代码块里的html字符防止引起混乱
$s = preg_replace_callback('/(```.*?```|`[^`]*`)/s', function ($matches) {
$ss = str_replace('
', '', $matches[0]);
// 大于小于号
$ss = htmlspecialchars_decode($ss, ENT_QUOTES | ENT_HTML5);
return $ss;
}, $s);
// 特殊转义
$s = str_replace("
", "\n", $s);
return $s;
}
?>
", ">", $sinput);
$soutput = str_replace("<", "<", $row['sample_output']);
$soutput = str_replace(">", ">", $soutput);
?>
0 && $sinput != "\n" || isset($_GET['spa'])) { ?>
0 && $soutput != "\n" || isset($_GET['spa'])) { ?>