mirror of
https://github.com/friendica/friendica
synced 2025-04-23 10:30:11 +00:00
BBcode, Tags - fix BBCode created tags in [code] blocks, fix usage of multiple ## created tags
This commit is contained in:
parent
431306b026
commit
d8bd1921ee
2 changed files with 33 additions and 8 deletions
|
@ -1178,7 +1178,7 @@ class BBCode extends BaseObject
|
|||
// Extracting multi-line code blocks before the whitespace processing
|
||||
$codeblocks = [];
|
||||
|
||||
$text = preg_replace_callback("#\[code(?:=([^\]]*))?\](.*?)\[\/code\]#is",
|
||||
$text = preg_replace_callback("#\[code(?:=([^\]]*))?\](.*?)\[\/code\]#ism",
|
||||
function ($matches) use (&$codeblocks) {
|
||||
$return = $matches[0];
|
||||
if (strpos($matches[2], "\n") !== false) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue