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