]> granicus.if.org Git - php/commitdiff
Make nl2br() output <br /> instead of <br> to be XHTML compliant.
authorJon Parise <jon@php.net>
Thu, 28 Dec 2000 01:02:44 +0000 (01:02 +0000)
committerJon Parise <jon@php.net>
Thu, 28 Dec 2000 01:02:44 +0000 (01:02 +0000)
Bug: 8390

ext/standard/string.c

index c07e564ada0152c93f5309681f5298af7eba7edf..f6010e71dc166afde654333f046480e55f7a91b5 100644 (file)
@@ -2323,7 +2323,7 @@ PHP_FUNCTION(nl2br)
        
        convert_to_string_ex(str);
        
-       php_char_to_str((*str)->value.str.val,(*str)->value.str.len,'\n',"<br>\n",5,return_value);
+       php_char_to_str((*str)->value.str.val,(*str)->value.str.len,'\n',"<br />\n",7,return_value);
 }
 /* }}} */