From: Hypolite Petovan Date: Sun, 14 Oct 2018 11:44:07 +0000 (-0400) Subject: Add HTML result boxes to mod/babel X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f7c020af04426483f875b742599defab10926c7c;p=friendica.git Add HTML result boxes to mod/babel --- diff --git a/mod/babel.php b/mod/babel.php index e5ae96be70..65287b9f2b 100644 --- a/mod/babel.php +++ b/mod/babel.php @@ -114,6 +114,17 @@ function babel_content() '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); $results[] = [ 'title' => L10n::t('HTML::toMarkdown'),