1259dfea0041943936efe6831bbcf716c6b0cf4b
tdreszer
  Tue Jul 27 15:13:50 2010 -0700
htmlEncode has been imprived with a newline char.  However, FF does not support it
diff --git src/lib/htmshell.c src/lib/htmshell.c
index 3ad714d..0dc8af5 100644
--- src/lib/htmshell.c
+++ src/lib/htmshell.c
@@ -153,7 +153,10 @@
     strSwapStrs(cleanQuote, size,"&" ,"&" ); //  '&' is not the start of a control char
     strSwapStrs(cleanQuote, size,">" ,">"  ); // '>' is not the close of a tag
     strSwapStrs(cleanQuote, size,"<" ,"&lt;"  ); // '<' is not the open of a tag
-    strSwapStrs(cleanQuote, size,"\n","&#124;"); // new lines replaced with '|' for lack of a better alternative
+    if(cgiClientBrowser(NULL,NULL,NULL) == btFF)
+        strSwapStrs(cleanQuote, size,"\n","&#124;"); // FF does not support!  Use "&#124;" for '|' instead
+    else
+        strSwapStrs(cleanQuote, size,"\n","&#x0A;"); // '\n' is supported on some browsers
     }
 strSwapStrs(cleanQuote, size,"\"","&quot;"); // Shield double quotes
 strSwapStrs(cleanQuote, size,"'" ,"&#39;" ); // Shield single quotes