mirror of
https://github.com/friendica/friendica
synced 2025-04-19 06:30:10 +00:00
fix some linebreak issues
This commit is contained in:
parent
050618a2b6
commit
fa1f2ce8f3
2 changed files with 20 additions and 9 deletions
|
@ -11,6 +11,9 @@ function html2bbcode($s) {
|
|||
|
||||
$htmltags = array(
|
||||
'/\n/is',
|
||||
'/\<pre\>(.*?)\<\/pre\>/is',
|
||||
'/\<p(.*?)\>/is',
|
||||
'/\<\/p\>/is',
|
||||
'/\<b\>(.*?)\<\/b\>/is',
|
||||
'/\<i\>(.*?)\<\/i\>/is',
|
||||
'/\<u\>(.*?)\<\/u\>/is',
|
||||
|
@ -32,6 +35,9 @@ function html2bbcode($s) {
|
|||
// Replace with
|
||||
|
||||
$bbtags = array(
|
||||
'',
|
||||
'[code]$1[/code]',
|
||||
'',
|
||||
"\n",
|
||||
'[b]$1[/b]',
|
||||
'[i]$1[/i]',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue