Merge pull request #8023 from MrPetovan/bug/7808-markdown-unescape-chevrons

Fix chevron display in BBCode/Markdown conversion
This commit is contained in:
Tobias Diekershoff 2019-12-28 08:07:30 +01:00 committed by GitHub
commit d6274ab6f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 70 additions and 92 deletions

View file

@ -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