mirror of
https://github.com/friendica/friendica
synced 2024-10-11 07:04:33 +02:00
Add BBCode to Markdown to HTML raw result in Module\Babel
- Display HTML entities for BBCode to Markdown output
This commit is contained in:
parent
6fa1dfa86a
commit
424106fd4e
|
@ -59,10 +59,14 @@ class Babel extends BaseModule
|
|||
$markdown = Text\BBCode::toMarkdown($bbcode);
|
||||
$results[] = [
|
||||
'title' => L10n::t('BBCode::toMarkdown'),
|
||||
'content' => visible_whitespace($markdown)
|
||||
'content' => visible_whitespace(htmlspecialchars($markdown))
|
||||
];
|
||||
|
||||
$html2 = Text\Markdown::convert($markdown);
|
||||
$results[] = [
|
||||
'title' => L10n::t('BBCode::toMarkdown => Markdown::convert (raw HTML)'),
|
||||
'content' => visible_whitespace(htmlspecialchars($html2))
|
||||
];
|
||||
$results[] = [
|
||||
'title' => L10n::t('BBCode::toMarkdown => Markdown::convert'),
|
||||
'content' => $html2
|
||||
|
|
Loading…
Reference in a new issue