|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-08-21 14:48 UTC] cmb@php.net
-Status: Open
+Status: Not a bug
-Assigned To:
+Assigned To: cmb
[2015-08-21 14:48 UTC] cmb@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 19:00:01 2025 UTC |
Description: ------------ The function nl2br() have a problem with strings, that have a \n\r inside. It returns a newline and a HTML line break for that. But the behavior of nl2br() with \r\n is different. It returns only a HTML line break for that. Test script: --------------- echo nl2br("This\r\nis\n\ra\nstring\r"); Expected result: ---------------- This<br /> is<br /> a<br /> string<br /> Actual result: -------------- This<br /> is<br /> a<br /> string<br />