增加一个if进行条件判断
This commit is contained in:
@@ -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">
|
||||||
|
|||||||
Reference in New Issue
Block a user