From: Matteo Nastasi (mop) Date: Thu, 10 Feb 2011 18:32:56 +0000 (+0100) Subject: add esclfhtml to show print_r correctly on html X-Git-Tag: 3.1.0~10 X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=9603235381668b55449b18a108e85ee27726d596;hp=ad62ecf88ef0d5e5fa03d6461ac4510314fc2b50;p=brisk.git add esclfhtml to show print_r correctly on html --- diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh index e7e7ac7..959fd1a 100644 --- a/web/Obj/brisk.phh +++ b/web/Obj/brisk.phh @@ -292,6 +292,11 @@ function eschtml($s) return htmlentities($s); } +function esclfhtml($s) +{ + return str_replace("\n", "
\n", htmlentities($s)); +} + function langtolng($lang) {