]> git.mxchange.org Git - friendica.git/commitdiff
Add HTML result boxes to mod/babel
authorHypolite Petovan <hypolite@mrpetovan.com>
Sun, 14 Oct 2018 11:44:07 +0000 (07:44 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sun, 14 Oct 2018 11:44:07 +0000 (07:44 -0400)
mod/babel.php

index e5ae96be70489556dd683a3ce3340b469d7a6b6b..65287b9f2b590eeeabdf66c36d797998170edb59 100644 (file)
@@ -114,6 +114,17 @@ function babel_content()
                                        'content' => visible_whitespace($bbcode)
                                ];
 
+                               $html2 = Text\BBCode::convert($bbcode);
+                               $results[] = [
+                                       'title' => L10n::t('HTML::toBBCode => BBCode::convert'),
+                                       'content' => $html2
+                               ];
+
+                               $results[] = [
+                                       'title' => L10n::t('HTML::toBBCode => BBCode::convert (raw HTML)'),
+                                       'content' => htmlspecialchars($html2)
+                               ];
+
                                $markdown = Text\HTML::toMarkdown($html);
                                $results[] = [
                                        'title' => L10n::t('HTML::toMarkdown'),