增加一个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
function trans_md($str)
{
return
"<span class='md'>" .
bbcode_to_html(
// htmlentities(
$str
// , ENT_QUOTES, 'UTF-8')
)
. "</span>"
;
$s = $str;
if (strpos($s, "class='md") !== false) // 没找到,那就加上
$s = "<span class='md'>" . $s ."</span>";
$s = bbcode_to_html($s);
return $s;
}
?>
<div class="row">