From 4e7c45f835b62512f3c651b875a1327cc369ba19 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Wed, 17 Jun 2020 04:58:13 -0400 Subject: [PATCH] Add PageInfo result panels to Debug\Babel --- src/Module/Debug/Babel.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/Module/Debug/Babel.php b/src/Module/Debug/Babel.php index 5d688d6579..2954bc010c 100644 --- a/src/Module/Debug/Babel.php +++ b/src/Module/Debug/Babel.php @@ -22,6 +22,7 @@ namespace Friendica\Module\Debug; use Friendica\BaseModule; +use Friendica\Content\PageInfo; use Friendica\Content\Text; use Friendica\Core\Renderer; use Friendica\DI; @@ -113,6 +114,21 @@ class Babel extends BaseModule 'title' => DI::l10n()->t('Item Tags'), '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; case 'diaspora': $diaspora = trim($_REQUEST['text']);