X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Fbabel.php;h=d31e090c554ee7f0b2c4eb6e716ed5b0d1f646ab;hb=9026810496d64290ab7926345f7fae9b82d07987;hp=ca2c068f8e2fcbd561ff9044fe6591e18f02bb29;hpb=bfca7f47ef1f986ea8515d23c3c1962c7fe3a298;p=friendica.git diff --git a/mod/babel.php b/mod/babel.php index ca2c068f8e..d31e090c55 100644 --- a/mod/babel.php +++ b/mod/babel.php @@ -11,7 +11,7 @@ function visible_lf($s) { function babel_content(&$a) { - $o .= '

Babel Diagnostic

'; + $o .= '

Babel Diagnostic

'; $o .= '
'; $o .= t('Source (bbcode) text:') . EOL . '' . EOL; @@ -28,31 +28,35 @@ function babel_content(&$a) { if(x($_REQUEST,'text')) { $text = trim($_REQUEST['text']); - $o .= t("Source input: ") . EOL. EOL; + $o .= "

" . t("Source input: ") . "

" . EOL. EOL; $o .= visible_lf($text) . EOL. EOL; $html = bbcode($text); - $o .= t("bb2html: ") . EOL. EOL; + $o .= "

" . t("bb2html (raw HTML): ") . "

" . EOL. EOL; + $o .= htmlspecialchars($html). EOL. EOL; + + //$html = bbcode($text); + $o .= "

" . t("bb2html: ") . "

" . EOL. EOL; $o .= $html. EOL. EOL; $bbcode = html2bbcode($html); - $o .= t("bb2html2bb: ") . EOL. EOL; + $o .= "

" . t("bb2html2bb: ") . "

" . EOL. EOL; $o .= visible_lf($bbcode) . EOL. EOL; $diaspora = bb2diaspora($text); - $o .= t("bb2md: ") . EOL. EOL; + $o .= "

" . t("bb2md: ") . "

" . EOL. EOL; $o .= visible_lf($diaspora) . EOL. EOL; $html = Markdown($diaspora); - $o .= t("bb2md2html: ") . EOL. EOL; + $o .= "

" . t("bb2md2html: ") . "

" . EOL. EOL; $o .= $html. EOL. EOL; $bbcode = diaspora2bb($diaspora); - $o .= t("bb2dia2bb: ") . EOL. EOL; + $o .= "

" . t("bb2dia2bb: ") . "

" . EOL. EOL; $o .= visible_lf($bbcode) . EOL. EOL; $bbcode = html2bbcode($html); - $o .= t("bb2md2html2bb: ") . EOL. EOL; + $o .= "

" . t("bb2md2html2bb: ") . "

" . EOL. EOL; $o .= visible_lf($bbcode) . EOL. EOL; @@ -62,12 +66,12 @@ function babel_content(&$a) { if(x($_REQUEST,'d2bbtext')) { $d2bbtext = trim($_REQUEST['d2bbtext']); - $o .= t("Source input (Diaspora format): ") . EOL. EOL; + $o .= "

" . t("Source input (Diaspora format): ") . "

" . EOL. EOL; $o .= visible_lf($d2bbtext) . EOL. EOL; $bb = diaspora2bb($d2bbtext); - $o .= t("diaspora2bb: ") . EOL. EOL; + $o .= "

" . t("diaspora2bb: ") . "

" . EOL. EOL; $o .= visible_lf($bb) . EOL. EOL; }