mirror of
https://github.com/friendica/friendica
synced 2024-12-22 16:48:03 +01:00
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)
|
||||
];
|
||||
|
||||
$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"),
|
||||
|
|
Loading…
Reference in a new issue