X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=encode.php;h=63ff5ce60f94aac1a0e04d05bf00afcc4d388e05;hb=3faf64c6a1e0cbd4f880da951775c41fb8a6f0ab;hp=cd1e0b49d03bfbca64e6ec92e5e6f06a3824e135;hpb=7f42492ea33a8d43ee12089b97bd8c0693b293e0;p=wfpl.git
diff --git a/encode.php b/encode.php
index cd1e0b4..63ff5ce 100644
--- a/encode.php
+++ b/encode.php
@@ -71,6 +71,15 @@ function enc_htmlbrtab($str) {
return $str;
}
+# Encode for output in html. Spaces converted to and \n to
+#
+# Example:
+function enc_htmlbrnbsp($str) {
+ $str = enc_htmlbr($str);
+ $str = str_replace(' ', ' ', $str);
+ return $str;
+}
+
# Encode for output in html. Spaces converted to
#
# Example: