]> git.mxchange.org Git - friendica.git/commitdiff
Add Text\BBCode::toPlaintext to mod/babel
authorHypolite Petovan <mrpetovan@gmail.com>
Sat, 21 Apr 2018 22:48:10 +0000 (18:48 -0400)
committerHypolite Petovan <mrpetovan@gmail.com>
Sat, 21 Apr 2018 22:48:10 +0000 (18:48 -0400)
mod/babel.php

index cafd06556b8adde32498fe28dd39c9e120e2849f..3352366bd5a78279c3e21d2b069c48c89e796c61 100644 (file)
@@ -23,6 +23,12 @@ function babel_content()
                                        'content' => visible_lf($bbcode)
                                ];
 
+                               $plain = Text\BBCode::toPlaintext($bbcode, false);
+                               $results[] = [
+                                       'title' => L10n::t('BBCode::toPlaintext'),
+                                       'content' => visible_lf($plain)
+                               ];
+
                                $html = Text\BBCode::convert($bbcode);
                                $results[] = [
                                        'title' => L10n::t("BBCode::convert \x28raw HTML\x29"),