|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #51483 nl2p() function
Submitted: 2010-04-05 20:05 UTC Modified: 2018-05-08 19:23 UTC
Avg. Score:4.6 ± 0.7
Reproduced:6 of 6 (100.0%)
Same Version:5 (83.3%)
Same OS:5 (83.3%)
From: franz at fluxbb dot org Assigned:
Status: Suspended Package: Strings related
PHP Version: Irrelevant OS: any
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: franz at fluxbb dot org
New email:
PHP Version: OS:


 [2010-04-05 20:05 UTC] franz at fluxbb dot org
The nl2br() function has been very benefitial to many people, I suppose.

However, these days it is seen as much nicer to wrap paragraphs in <p> tags rather 
than using <br> to split them up.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2018-05-08 19:23 UTC]
-Status: Open +Status: Suspended -Package: Unknown/Other Function +Package: Strings related
 [2018-05-08 19:23 UTC]
I don't think that nl2br() actually deserves to be in core PHP,
since it can easily be written in userland.  Adding yet another
string function for a similar purpose is questionable, so it would
at least require discussion on the internals mailing list[1], and
maybe the RFC process[2].

For the time being, I'm suspending this ticket.

[1] <>
[2] <>
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Oct 24 02:03:34 2021 UTC