From c9f053022c7ff4627a4e861801850ff40bf20e1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=94=E8=90=BD?= <45323514+BigCoke233@users.noreply.github.com> Date: Sat, 13 Apr 2019 14:41:13 +0800 Subject: Add files via upload --- post/post-content.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'post/post-content.php') diff --git a/post/post-content.php b/post/post-content.php index 56d160d..068f6a1 100644 --- a/post/post-content.php +++ b/post/post-content.php @@ -4,8 +4,8 @@ $content = preg_replace('//s','',$content); $content = preg_replace('//s','',$content); $content = preg_replace('/
/s','
',$content);
-	$content = preg_replace('//s','${4}',$content); 
-	
+	$content = preg_replace('//s','
${4}
',$content); + //短代码(无参数) $reg = '/\[scode\](.*?)\[\/scode\]/s'; $rp = '
${1}
'; -- cgit v1.2.3