add esclfhtml to show print_r correctly on html
[brisk.git] / 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)
 {