mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 13:17:24 +02:00
Issue #24 revision [additional line-breaks issue]
This commit is contained in:
@@ -594,6 +594,7 @@ class e_bbcode
|
|||||||
array( "\n", '<br />'),
|
array( "\n", '<br />'),
|
||||||
// array( "\n", '<p>'),
|
// array( "\n", '<p>'),
|
||||||
array( "[/list]", '</ul>\n'),
|
array( "[/list]", '</ul>\n'),
|
||||||
|
array( "[/list]", '</ul>'),
|
||||||
array( "[h=2]", '<h2 class="bbcode-center" style="text-align: center;">'), // e107 bbcode markup
|
array( "[h=2]", '<h2 class="bbcode-center" style="text-align: center;">'), // e107 bbcode markup
|
||||||
array( "[h=2]", '<h2>'),
|
array( "[h=2]", '<h2>'),
|
||||||
array( "[/h]", '</h2>'),
|
array( "[/h]", '</h2>'),
|
||||||
|
@@ -17,13 +17,13 @@ if($_POST['mode'] == 'tohtml')
|
|||||||
{
|
{
|
||||||
$content = $tp->toDB($_POST['content']);
|
$content = $tp->toDB($_POST['content']);
|
||||||
e107::getBB()->setClass($_SESSION['media_category']);
|
e107::getBB()->setClass($_SESSION['media_category']);
|
||||||
echo $tp->toHtml($content, true);
|
echo $tp->toHtml(str_replace("\n","",$content), true);
|
||||||
e107::getBB()->clearClass();
|
e107::getBB()->clearClass();
|
||||||
}
|
}
|
||||||
|
|
||||||
if($_POST['mode'] == 'tobbcode')
|
if($_POST['mode'] == 'tobbcode')
|
||||||
{
|
{
|
||||||
// echo $_POST['content'];
|
//echo $_POST['content'];
|
||||||
$content = stripslashes($_POST['content']);
|
$content = stripslashes($_POST['content']);
|
||||||
echo e107::getBB()->htmltoBBcode($content);
|
echo e107::getBB()->htmltoBBcode($content);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user