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:
@@ -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);
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user