]> git.mxchange.org Git - friendica.git/blobdiff - mod/babel.php
Added value to settings.config.php
[friendica.git] / mod / babel.php
index 64c9557767d278d7a6122019dbd6016f4c3087d0..51bbf7c8a4b7ef8c6382dc21aa1c2dbfaee5c59c 100644 (file)
@@ -72,6 +72,21 @@ function babel_content()
                                        'title' => L10n::t('BBCode::toMarkdown =>  Markdown::convert => HTML::toBBCode'),
                                        'content' => visible_whitespace($bbcode4)
                                ];
+
+                               $item = [
+                                       'body' => $bbcode,
+                                       'tag' => '',
+                               ];
+
+                               \Friendica\Model\Item::setHashtags($item);
+                               $results[] = [
+                                       'title' => L10n::t('Item Body'),
+                                       'content' => visible_whitespace($item['body'])
+                               ];
+                               $results[] = [
+                                       'title' => L10n::t('Item Tags'),
+                                       'content' => $item['tag']
+                               ];
                                break;
                        case 'markdown':
                                $markdown = trim($_REQUEST['text']);
@@ -83,7 +98,7 @@ function babel_content()
                                $html = Text\Markdown::convert($markdown);
                                $results[] = [
                                        'title' => L10n::t('Markdown::convert (raw HTML)'),
-                                       'content' => htmlspecialchars($html)
+                                       'content' => visible_whitespace(htmlspecialchars($html))
                                ];
 
                                $results[] = [