From 9603235381668b55449b18a108e85ee27726d596 Mon Sep 17 00:00:00 2001 From: "Matteo Nastasi (mop)" Date: Thu, 10 Feb 2011 19:32:56 +0100 Subject: [PATCH] add esclfhtml to show print_r correctly on html --- web/Obj/brisk.phh | 5 +++++ 1 file changed, 5 insertions(+) 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) { -- 2.17.1