Add PageInfo result panels to Debug\Babel

This commit is contained in:
Hypolite Petovan 2020-06-17 04:58:13 -04:00
parent f3323aff5e
commit 4e7c45f835

View file

@ -22,6 +22,7 @@
namespace Friendica\Module\Debug; namespace Friendica\Module\Debug;
use Friendica\BaseModule; use Friendica\BaseModule;
use Friendica\Content\PageInfo;
use Friendica\Content\Text; use Friendica\Content\Text;
use Friendica\Core\Renderer; use Friendica\Core\Renderer;
use Friendica\DI; use Friendica\DI;
@ -113,6 +114,21 @@ class Babel extends BaseModule
'title' => DI::l10n()->t('Item Tags'), 'title' => DI::l10n()->t('Item Tags'),
'content' => visible_whitespace(var_export($tags, true)), 'content' => visible_whitespace(var_export($tags, true)),
]; ];
$body2 = PageInfo::appendToBody($bbcode, true);
$results[] = [
'title' => DI::l10n()->t('PageInfo::appendToBody'),
'content' => visible_whitespace($body2)
];
$html3 = Text\BBCode::convert($body2);
$results[] = [
'title' => DI::l10n()->t('PageInfo::appendToBody => BBCode::convert (raw HTML)'),
'content' => visible_whitespace($html3)
];
$results[] = [
'title' => DI::l10n()->t('PageInfo::appendToBody => BBCode::convert'),
'content' => $html3
];
break; break;
case 'diaspora': case 'diaspora':
$diaspora = trim($_REQUEST['text']); $diaspora = trim($_REQUEST['text']);