]> git.mxchange.org Git - friendica.git/commitdiff
Replace abstract content with a space to prevent missing spaces
authorMichael <heluecht@pirati.ca>
Tue, 8 Mar 2022 19:58:55 +0000 (19:58 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 8 Mar 2022 19:58:55 +0000 (19:58 +0000)
src/Content/Text/BBCode.php

index e676673fc14989d8acad7307207282ae5bcfe96e..2c17663c1eff360b48e6640c8160e4aebd7b9aca 100644 (file)
@@ -2086,8 +2086,8 @@ class BBCode
        public static function stripAbstract($text)
        {
                DI::profiler()->startRecording('rendering');
-               $text = preg_replace("/[\s|\n]*\[abstract\].*?\[\/abstract\][\s|\n]*/ism", '', $text);
-               $text = preg_replace("/[\s|\n]*\[abstract=.*?\].*?\[\/abstract][\s|\n]*/ism", '', $text);
+               $text = preg_replace("/[\s|\n]*\[abstract\].*?\[\/abstract\][\s|\n]*/ism", ' ', $text);
+               $text = preg_replace("/[\s|\n]*\[abstract=.*?\].*?\[\/abstract][\s|\n]*/ism", ' ', $text);
 
                DI::profiler()->stopRecording();
                return $text;