Merge pull request #4447 from MrPetovan/bug/4445-improve-bbcode-quote-html

Add paragraph to BBCode conversion of [quote]
This commit is contained in:
Tobias Diekershoff 2018-02-13 07:09:22 +01:00 committed by GitHub
commit 4c91729bc9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1727,7 +1727,7 @@ class BBCode
$endlessloop = 0;
while ((strpos($text, "[/quote]")!== false) && (strpos($text, "[quote=") !== false) && (++$endlessloop < 20)) {
$text = preg_replace("/\[quote=[\"\']*(.*?)[\"\']*\](.*?)\[\/quote\]/ism",
"<br /><strong class=".'"author"'.">" . $t_wrote . "</strong><blockquote>$2</blockquote>",
"<p><strong class=".'"author"'.">" . $t_wrote . "</strong></p><blockquote>$2</blockquote>",
$text);
}