1
0
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:
farr3ll
2012-12-02 14:52:55 +02:00
parent 744e15367e
commit a6c059f55f
2 changed files with 3 additions and 2 deletions

View File

@@ -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);
}