mirror of
https://github.com/friendica/friendica
synced 2024-12-23 09:20:17 +00:00
Add HTML output panel to babel module
This commit is contained in:
parent
c3e3e83a52
commit
4a85de4c19
1 changed files with 7 additions and 1 deletions
|
@ -148,6 +148,12 @@ class Babel extends BaseModule
|
|||
'content' => htmlspecialchars($html2)
|
||||
];
|
||||
|
||||
$bbcode2plain = Text\BBCode::toPlaintext($bbcode);
|
||||
$results[] = [
|
||||
'title' => L10n::t('HTML::toBBCode => BBCode::toPlaintext'),
|
||||
'content' => '<pre>' . $bbcode2plain . '</pre>'
|
||||
];
|
||||
|
||||
$markdown = Text\HTML::toMarkdown($html);
|
||||
$results[] = [
|
||||
'title' => L10n::t('HTML::toMarkdown'),
|
||||
|
@ -162,7 +168,7 @@ class Babel extends BaseModule
|
|||
|
||||
$text = Text\HTML::toPlaintext($html, 0, true);
|
||||
$results[] = [
|
||||
'title' => L10n::t('HTML::toPlaintext'),
|
||||
'title' => L10n::t('HTML::toPlaintext (compact)'),
|
||||
'content' => '<pre>' . $text . '</pre>'
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue