NYCPHP Meetup

NYPHP.org

[nycphp-talk] Adding <br> and <p> to a text

Chris Snyder chris at psydeshow.org
Thu May 22 11:41:38 EDT 2003


Emmanuel. M. Decarie wrote:

>Now, what I'd like to do is to add <br> after one carriage and keep 
>the 'autoparagraphs' feature.
>
>  
>
After you determine each paragraph, would it work to call nl2br($item) ?
(This would also give you xhtml-compliant <br />s.)

file:///usr/local/share/doc/php/function.nl2br.html

    chris.




More information about the talk mailing list