]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Debug/Babel.php
Merge remote-tracking branch 'upstream/develop' into item-notification
[friendica.git] / src / Module / Debug / Babel.php
index cf1f869552e6116b0c3bb097c97120bdafdb5851..edd897be87c608d4f2b478cc8ffc49e427a56460 100644 (file)
@@ -14,7 +14,7 @@ use Friendica\Util\XML;
  */
 class Babel extends BaseModule
 {
-       public static function content()
+       public static function content(array $parameters = [])
        {
                function visible_whitespace($s)
                {
@@ -59,10 +59,14 @@ class Babel extends BaseModule
                                        $markdown = Text\BBCode::toMarkdown($bbcode);
                                        $results[] = [
                                                'title'   => L10n::t('BBCode::toMarkdown'),
-                                               'content' => visible_whitespace($markdown)
+                                               'content' => visible_whitespace(htmlspecialchars($markdown))
                                        ];
 
                                        $html2 = Text\Markdown::convert($markdown);
+                                       $results[] = [
+                                               'title'   => L10n::t('BBCode::toMarkdown => Markdown::convert (raw HTML)'),
+                                               'content' => visible_whitespace(htmlspecialchars($html2))
+                                       ];
                                        $results[] = [
                                                'title'   => L10n::t('BBCode::toMarkdown => Markdown::convert'),
                                                'content' => $html2