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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 22:01:28 2024 UTC