mirror of
https://github.com/friendica/friendica
synced 2024-12-23 07:20:15 +00:00
Add HTML result boxes to mod/babel
This commit is contained in:
parent
a769efae38
commit
f7c020af04
1 changed files with 11 additions and 0 deletions
|
@ -114,6 +114,17 @@ function babel_content()
|
||||||
'content' => visible_whitespace($bbcode)
|
'content' => visible_whitespace($bbcode)
|
||||||
];
|
];
|
||||||
|
|
||||||
|
$html2 = Text\BBCode::convert($bbcode);
|
||||||
|
$results[] = [
|
||||||
|
'title' => L10n::t('HTML::toBBCode => BBCode::convert'),
|
||||||
|
'content' => $html2
|
||||||
|
];
|
||||||
|
|
||||||
|
$results[] = [
|
||||||
|
'title' => L10n::t('HTML::toBBCode => BBCode::convert (raw HTML)'),
|
||||||
|
'content' => htmlspecialchars($html2)
|
||||||
|
];
|
||||||
|
|
||||||
$markdown = Text\HTML::toMarkdown($html);
|
$markdown = Text\HTML::toMarkdown($html);
|
||||||
$results[] = [
|
$results[] = [
|
||||||
'title' => L10n::t('HTML::toMarkdown'),
|
'title' => L10n::t('HTML::toMarkdown'),
|
||||||
|
|
Loading…
Reference in a new issue