修复md格式错误的问题

This commit is contained in:
2024-12-07 17:50:09 +08:00
parent fea3ec456d
commit c5600b7244
2 changed files with 6 additions and 8 deletions

View File

@@ -128,7 +128,9 @@ if ($pr_flag) {
strpos($s, "class=\"md") === false
) // 没找到,那就加上
$s = "<span class='md'>" . $s . "</span>";
$s = html_entity_decode($str, ENT_QUOTES, 'UTF-8');
// $s = html_entity_decode($str, ENT_QUOTES, 'UTF-8');
// 特殊转义
$s = str_replace("<br />", "\n", $s);
return $s;
}
?>