JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
xhtml -> html5
[wfpl.git] / encode.php
index b81a4fc..07bd2f8 100644 (file)
@@ -51,17 +51,17 @@ function enc_html($str) {
        return $str;
 }
 
-# Encode for output in html. Convert newlines to <br />
+# Encode for output in html. Convert newlines to <br>
 #
 # Example: <p>~foo htmlbr~</p>
 function enc_htmlbr($str) {
        $str = enc_html($str);
-       $str = str_replace("\n", "<br />\n", $str);
+       $str = str_replace("\n", "<br>\n", $str);
        return $str;
 }
 
 # Encode for output in html. Preserves newlines and indentation by converting
-# newlines to <br /> and spaces at the begining of lines to &nbsp;&nbsp;
+# newlines to <br> and spaces at the begining of lines to &nbsp;&nbsp;
 #
 # Example: <p>~foo htmlbrtab~</p>
 function enc_htmlbrtab($str) {
@@ -71,7 +71,7 @@ function enc_htmlbrtab($str) {
        return $str;
 }
 
-# Encode for output in html. Spaces converted to &nbsp; and \n to <br />
+# Encode for output in html. Spaces converted to &nbsp; and \n to <br>
 #
 # Example: <option value="12">~foo htmlbrnbsp~</option>
 function enc_htmlbrnbsp($str) {