aboutsummaryrefslogtreecommitdiffstats
path: root/include/html2bbcode.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-01-17 19:50:18 -0800
committerFriendika <info@friendika.com>2011-01-17 19:50:18 -0800
commitfa1f2ce8f38962b97c4a6a327c5f50e238eabb9b (patch)
tree6ff4478f2ab38ad446e5d436ed284b006786bf48 /include/html2bbcode.php
parent050618a2b690ad2e2d8e84afbada8b12f9da0f01 (diff)
downloadvolse-hubzilla-fa1f2ce8f38962b97c4a6a327c5f50e238eabb9b.tar.gz
volse-hubzilla-fa1f2ce8f38962b97c4a6a327c5f50e238eabb9b.tar.bz2
volse-hubzilla-fa1f2ce8f38962b97c4a6a327c5f50e238eabb9b.zip
fix some linebreak issues
Diffstat (limited to 'include/html2bbcode.php')
-rw-r--r--include/html2bbcode.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/html2bbcode.php b/include/html2bbcode.php
index 7cacadd65..65cbcec41 100644
--- a/include/html2bbcode.php
+++ b/include/html2bbcode.php
@@ -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]',