add esclfhtml to show print_r correctly on html
authorMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Thu, 10 Feb 2011 18:32:56 +0000 (19:32 +0100)
committerMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Thu, 10 Feb 2011 18:32:56 +0000 (19:32 +0100)
web/Obj/brisk.phh

index e7e7ac7..959fd1a 100644 (file)
@@ -292,6 +292,11 @@ function eschtml($s)
     return htmlentities($s);
 }
 
+function esclfhtml($s)
+{
+    return str_replace("\n", "<br>\n", htmlentities($s));
+}
+
 
 function langtolng($lang)
 {