Add Text\BBCode::toPlaintext to mod/babel
This commit is contained in:
parent
1e67c32142
commit
ee672b946e
1 changed files with 6 additions and 0 deletions
|
@ -23,6 +23,12 @@ function babel_content()
|
||||||
'content' => visible_lf($bbcode)
|
'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);
|
$html = Text\BBCode::convert($bbcode);
|
||||||
$results[] = [
|
$results[] = [
|
||||||
'title' => L10n::t("BBCode::convert \x28raw HTML\x29"),
|
'title' => L10n::t("BBCode::convert \x28raw HTML\x29"),
|
||||||
|
|
Loading…
Reference in a new issue