From 2c02629159585cceb8404e044b0163084f7a2be5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=94=E8=90=BD?= <45323514+BigCoke233@users.noreply.github.com> Date: Sun, 31 Mar 2019 11:51:06 +0800 Subject: =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=8D=E6=AD=A3=E7=A1=AE=E7=9A=84?= =?UTF-8?q?=E8=A7=A3=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- includes/post-content.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'includes') diff --git a/includes/post-content.php b/includes/post-content.php index b60b52e..5aa7653 100644 --- a/includes/post-content.php +++ b/includes/post-content.php @@ -1,9 +1,8 @@ /s','${4}',$this->content); - $content = preg_replace('//s','',$this->content); + $content = preg_replace('//s','
',$this->content); $content = preg_replace('/
/s','
',$this->content);
-	
+	$content = preg_replace('//s','',$this->content); 
+
 	//短代码(无参数)
 	$reg = '/\[scode\](.*?)\[\/scode\]/s';
     $rp = '
${1}
'; @@ -45,5 +44,6 @@ $rp = '
${1}
'; $content = preg_replace($reg,$rp,$content); + echo $content ?> \ No newline at end of file -- cgit v1.2.3