]> mop.ddnsfree.com - git repositories - brisk.git/commitdiff
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 e7e7ac7ae2b17694a822733ff2785cd43f9fa41a..959fd1a9068a4fbc819c81f4381b0a82109cfc6f 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)
 {