X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=encode.php;h=bad7b4b0a4f26386b8f160861dd5b5da2acdb982;hb=cf5d0ee46eaa0239459a54464e5983a3e2645852;hp=1cbac74e7d6252e51a4f599999ef383f057ff8d6;hpb=48805cdb3501fc558a68a31f2aed2f6ad716e297;p=wfpl.git
diff --git a/encode.php b/encode.php
index 1cbac74..bad7b4b 100644
--- a/encode.php
+++ b/encode.php
@@ -50,14 +50,11 @@ function enc_html($str) {
return $str;
}
-
-# Encode for output in html. Converts newlines to
+# Encode for output in html. Convert newlines to
#
# Example:
~foo.html~
function enc_htmlbr($str) { - $str = str_replace('&', '&', $str); - $str = str_replace('<', '<', $str); - $str = str_replace('>', '>', $str); + $str = enc_html($str); $str = str_replace("\n", "