From 424106fd4ee72a1983a760d71458f9bd73ea990b Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Fri, 20 Dec 2019 23:19:06 -0500 Subject: [PATCH] Add BBCode to Markdown to HTML raw result in Module\Babel - Display HTML entities for BBCode to Markdown output --- src/Module/Debug/Babel.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Module/Debug/Babel.php b/src/Module/Debug/Babel.php index 17187a37c7..edd897be87 100644 --- a/src/Module/Debug/Babel.php +++ b/src/Module/Debug/Babel.php @@ -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