]> mop.ddnsfree.com - git repositories - brisk.git/commitdiff
esclfhtml: add space to nbsp conversion
authorMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Tue, 10 Dec 2013 15:40:41 +0000 (16:40 +0100)
committerMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Tue, 10 Dec 2013 15:40:41 +0000 (16:40 +0100)
web/Obj/brisk.phh

index 2042aec24221cac7111c26a02dbc34b3414680a9..5fb98fbbe5296d32d1993ef5e65dc7861f6d670e 100644 (file)
@@ -395,7 +395,7 @@ function eschtml($s)
 
 function esclfhtml($s)
 {
-    return str_replace("\n", "<br>", htmlspecialchars($s));
+    return str_replace(" ", "&nbsp;", str_replace("\n", "<br>", htmlspecialchars($s)));
 }
 
 function langtolng($lang)