Lars Torben Wilson writes:
> 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:
Just following up to myself (sorry)--I just realized that this wasn't
in 4.0.4 since it was added on Dec 28 2000. Will be in 4.0.5 though.
> ~/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]
>
--
+----------------------------------------------------------------+
|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]