1
0
mirror of https://github.com/php/php-src.git synced 2026-04-11 18:13:00 +02:00

Make nl2br() output <br /> instead of <br> to be XHTML compliant.

Bug: 8390
This commit is contained in:
Jon Parise
2000-12-28 01:02:44 +00:00
parent 54d53055c2
commit 4e384e0073

View 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);
}
/* }}} */