From ee672b946e1915ece78aa7e3bd40365709c0adbb Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sat, 21 Apr 2018 18:48:10 -0400 Subject: [PATCH] Add Text\BBCode::toPlaintext to mod/babel --- mod/babel.php | 6 ++++++ 1 file changed, 6 insertions(+) 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"), -- 2.39.5