[thelist] PHP nl2br - <br> and <br />

s t e f stef at nota-bene.org
Sun Mar 24 13:39:01 CST 2002


[[ Donald Noble -- 15:43 24/03/02 +0000 ]]
> >From the PHP manual:
>"Starting with PHP 4.0.5, nl2br() is now XHTML compliant."
>
>What about people who are still using HTML4.01 ??? is there some way to
>make this function return just <br>, as this is now stopping a lot of my
>pages validating. :(

If I were you I'd ereg_replace directly the line breaks. Yeah I know it's
kind of exactly what you wanted to avoid, yet I don't see any other solution.

HTH
stef




More information about the thelist mailing list