2016-08-01 12:58:03 -07:00
|
|
|
<?php
|
|
|
|
/*
|
|
|
|
* e107 website system
|
|
|
|
*
|
|
|
|
* Copyright (C) 2008-2010 e107 Inc (e107.org)
|
|
|
|
* Released under the terms and conditions of the
|
|
|
|
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* $Source: /cvs_backup/e107_0.8/e107_plugins/linkwords/e_tohtml.php,v $
|
|
|
|
* $Revision$
|
|
|
|
* $Date$
|
|
|
|
* $Author$
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!defined('e107_INIT')) { exit; }
|
|
|
|
|
|
|
|
|
|
|
|
class _blank_parse
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
/* constructor */
|
|
|
|
function __construct()
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2017-01-29 08:42:18 -08:00
|
|
|
* Process a string before it is sent to the browser as html.
|
2016-08-01 12:58:03 -07:00
|
|
|
* @param string $text html/text to be processed.
|
|
|
|
* @param string $context Current context ie. OLDDEFAULT | BODY | TITLE | SUMMARY | DESCRIPTION | WYSIWYG etc.
|
|
|
|
* @return string
|
|
|
|
*/
|
2019-02-26 12:22:36 -08:00
|
|
|
function toHTML($text, $context='')
|
2016-08-01 12:58:03 -07:00
|
|
|
{
|
2017-01-29 08:56:44 -08:00
|
|
|
$text = str_replace('****', '<hr>', $text);
|
2016-08-01 12:58:03 -07:00
|
|
|
return $text;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-01-29 08:42:18 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Process a string before it is saved to the database.
|
|
|
|
* @param string $text html/text to be processed.
|
|
|
|
* @param array $param nostrip, noencode etc.
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
function toDB($text, $param=array())
|
|
|
|
{
|
2017-01-29 08:56:44 -08:00
|
|
|
// e107::getDebug()->log($text);
|
|
|
|
$text = str_replace('<hr>', '****', $text);
|
2017-01-29 08:42:18 -08:00
|
|
|
return $text;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-08-01 12:58:03 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|