Add Text\BBCode::toPlaintext to mod/babel

This commit is contained in:
Hypolite Petovan 2018-04-21 18:48:10 -04:00
parent 1e67c32142
commit ee672b946e

View 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"),