mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-16 20:05:14 +02:00
fix a few issues with code blocks, ignore tags within blocks, fold multi-line blocks to one, also turn html br into two LFs.
This commit is contained in:
parent
1460fc0d71
commit
00d2b58358
4 changed files with 24 additions and 2 deletions
|
@ -165,7 +165,11 @@ function item_post(&$a) {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Fold multi-line [code] sequences
|
||||
*/
|
||||
|
||||
$body = preg_replace('/\[\/code\]\s*\[code\]/m',"\n",$body);
|
||||
|
||||
/**
|
||||
* Look for any tags and linkify them
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue