refactored esclfhtml function to avoid ASCII string output and removing NL
[brisk.git] / web / Obj / brisk.phh
index e88f1db..344b30e 100644 (file)
@@ -395,10 +395,9 @@ function eschtml($s)
 
 function esclfhtml($s)
 {
-    return str_replace("\n", "<br>\n", htmlentities($s));
+    return str_replace("\n", "<br>", htmlspecialchars($s));
 }
 
-
 function langtolng($lang)
 {
   GLOBAL $G_lang;