php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #8798 nl2br() function and XHTML 1.0
Submitted: 2001-01-19 03:53 UTC Modified: 2001-01-19 04:32 UTC
From: egeberg at eisenstein dot dk Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0.3pl1 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: egeberg at eisenstein dot dk
New email:
PHP Version: OS:

 

 [2001-01-19 03:53 UTC] egeberg at eisenstein dot dk
 The nl2br() function prints html not xhtml (<br> and <br/>). Maybe the function should take a xhtml / html parameter or a new function should be added so that xhtml writers can use the functions.

Many thanks for alot of greatness in the field of excellence,
Taiis at eisenstein.dk

(check the error out by validating http://taiis.dk at w3)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-01-19 04:32 UTC] avsm@php.net
This is already fixed in 4.0.5-cvs.  Look at:

http://cvs.php.net/viewcvs.cgi/php4/ext/standard/string.c.diff?r1=1.176&r2=1.177

for the actually commit diff, so wait till 4.0.5 or upgrade to a snapshot from http://snaps.php.net/

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue May 06 17:02:17 2025 UTC