增加一个if进行条件判断

This commit is contained in:
2024-12-06 17:00:53 +08:00
parent 4e0a983b6c
commit 6219b4ea1a

View File

@@ -121,15 +121,11 @@ if ($pr_flag) {
<?php <?php
function trans_md($str) function trans_md($str)
{ {
return $s = $str;
"<span class='md'>" . if (strpos($s, "class='md") !== false) // 没找到,那就加上
bbcode_to_html( $s = "<span class='md'>" . $s ."</span>";
// htmlentities( $s = bbcode_to_html($s);
$str return $s;
// , ENT_QUOTES, 'UTF-8')
)
. "</span>"
;
} }
?> ?>
<div class="row"> <div class="row">