X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FDebug%2FBabel.php;h=649c12cecdf5b6da8f65481933982154abd77048;hb=7921766c59c1050737ff7fed7c242257e866d149;hp=f4a0fa1d9522f139189e3cd2740d4fb0eb0682f8;hpb=6321dcc6d7d2f05c5f353243b2434fb6a701045e;p=friendica.git diff --git a/src/Module/Debug/Babel.php b/src/Module/Debug/Babel.php index f4a0fa1d95..649c12cecd 100644 --- a/src/Module/Debug/Babel.php +++ b/src/Module/Debug/Babel.php @@ -1,6 +1,6 @@ $html ]; - $config = \HTMLPurifier_Config::createDefault(); - $HTMLPurifier = new \HTMLPurifier($config); - $purified = $HTMLPurifier->purify($html); + $purified = Text\HTML::purify($html); $results[] = [ 'title' => DI::l10n()->t('HTML Purified (raw)'), @@ -306,6 +301,7 @@ class Babel extends BaseModule $tpl = Renderer::getMarkupTemplate('babel.tpl'); $o = Renderer::replaceMacros($tpl, [ + '$title' => DI::l10n()->t('Babel Diagnostic'), '$text' => ['text', DI::l10n()->t('Source text'), $_REQUEST['text'] ?? '', ''], '$type_bbcode' => ['type', DI::l10n()->t('BBCode'), 'bbcode', '', (($_REQUEST['type'] ?? '') ?: 'bbcode') == 'bbcode'], '$type_diaspora' => ['type', DI::l10n()->t('Diaspora'), 'diaspora', '', (($_REQUEST['type'] ?? '') ?: 'bbcode') == 'diaspora'], @@ -313,7 +309,8 @@ class Babel extends BaseModule '$type_html' => ['type', DI::l10n()->t('HTML'), 'html', '', (($_REQUEST['type'] ?? '') ?: 'bbcode') == 'html'], '$flag_twitter' => file_exists('addon/twitter/twitter.php'), '$type_twitter' => ['type', DI::l10n()->t('Twitter Source / Tweet URL (requires API key)'), 'twitter', '', (($_REQUEST['type'] ?? '') ?: 'bbcode') == 'twitter'], - '$results' => $results + '$results' => $results, + '$submit' => DI::l10n()->t('Submit'), ]); return $o;