mirror of
https://github.com/e107inc/e107.git
synced 2025-10-12 05:24:38 +02:00
Issue #24 revision [additional line-breaks issue]
This commit is contained in:
@@ -17,13 +17,13 @@ if($_POST['mode'] == 'tohtml')
|
||||
{
|
||||
$content = $tp->toDB($_POST['content']);
|
||||
e107::getBB()->setClass($_SESSION['media_category']);
|
||||
echo $tp->toHtml($content, true);
|
||||
echo $tp->toHtml(str_replace("\n","",$content), true);
|
||||
e107::getBB()->clearClass();
|
||||
}
|
||||
|
||||
if($_POST['mode'] == 'tobbcode')
|
||||
{
|
||||
// echo $_POST['content'];
|
||||
//echo $_POST['content'];
|
||||
$content = stripslashes($_POST['content']);
|
||||
echo e107::getBB()->htmltoBBcode($content);
|
||||
}
|
||||
|
Reference in New Issue
Block a user