From: Hypolite Petovan Date: Sat, 21 Apr 2018 22:48:10 +0000 (-0400) Subject: Add Text\BBCode::toPlaintext to mod/babel X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ee672b946e1915ece78aa7e3bd40365709c0adbb;p=friendica.git Add Text\BBCode::toPlaintext to mod/babel --- diff --git a/mod/babel.php b/mod/babel.php index cafd06556b..3352366bd5 100644 --- a/mod/babel.php +++ b/mod/babel.php @@ -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"),