use Friendica\Content\Text\Markdown;
use Friendica\Core\L10n;
-require_once 'include/bb2diaspora.php';
require_once 'include/html2bbcode.php';
function visible_lf($s)
$o .= visible_lf($bbcode) . EOL . EOL;
$diaspora = BBCode::toMarkdown($text);
- $o .= '<h2>' . L10n::t('bb2diaspora: ') . '</h2>' . EOL . EOL;
+ $o .= '<h2>' . L10n::t('BBCode::toMarkdown: ') . '</h2>' . EOL . EOL;
$o .= visible_lf($diaspora) . EOL . EOL;
$html = Markdown::convert($diaspora);
- $o .= '<h2>' . L10n::t('bb2diaspora => Markdown: ') . '</h2>' . EOL . EOL;
+ $o .= '<h2>' . L10n::t('BBCode::toMarkdown => Markdown::convert: ') . '</h2>' . EOL . EOL;
$o .= $html . EOL . EOL;
$bbcode = Markdown::toBBCode($diaspora);
- $o .= '<h2>' . L10n::t('bb2diaspora => diaspora2bb: ') . '</h2>' . EOL . EOL;
+ $o .= '<h2>' . L10n::t('BBCode::toMarkdown => Markdown::toBBCode: ') . '</h2>' . EOL . EOL;
$o .= visible_lf($bbcode) . EOL . EOL;
$bbcode = html2bbcode($html);
require_once 'include/dba.php';
require_once 'include/items.php';
-require_once 'include/bb2diaspora.php';
/**
* @brief This class contain functions to create and send Diaspora XML files