Lucas Rockwell writes:
> hi,
> 
> i know the subject of changing the source code for the community at large
> is a touchy one, so i want to start off by saying that i want to make this
> change for our php implementation for use on our site.
> 
> so, with that said, i would like to modify the nl2br() function so that it
> is xhtml 1.0 compliant. can anyone tell me where in the code i can find
> this function?
> 
> many thanks in advance.
> 
> -lucas
> 
> ------------------------
> Lucas Rockwell
> [EMAIL PROTECTED]

It's in ext/standard/string.c in the PHP 4 source, but it already is
XHTML compliant:

 ~/work/php4
 shanna% php -q -a
 Interactive mode enabled

 <?php
 echo nl2br("This is \n a test\n");
 This is <br />
  a test<br />
 ?>

 ~/work/php4
 shanna% php -v
 4.0.5-dev


Cheers,

Torben


-- 
+----------------------------------------------------------------+
|Torben Wilson <[EMAIL PROTECTED]>                    Adcore Finland|
|http://www.coastnet.com/~torben            http://www.adcore.com|
|Ph: 1.604.709.0506                             [EMAIL PROTECTED]|
+----------------------------------------------------------------+

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to