Re: [PHP] text to HTML

2007-08-26 Thread Richard Lynch
On Sun, August 26, 2007 9:36 am, Ron Piggott wrote: > > Is there a PHP command that turns text into HTML? > > EXAMPLE: > > "before" > > Hi. > > How are you doing? > > "after" > > Hi. > > How are you doing? http://php.net/nl2br You could also do: echo "", str_replace("\n", "\n", $text), "\n"; Ano

RE: [PHP] text to HTML

2007-08-26 Thread Bastien Koert
:06 -0400 > Subject: [PHP] text to HTML > > > Is there a PHP command that turns text into HTML? > > EXAMPLE: > > "before" > > Hi. > > How are you doing? > > "after" > > Hi. > > How are you doing? >

[PHP] text to HTML

2007-08-26 Thread Ron Piggott
Is there a PHP command that turns text into HTML? EXAMPLE: "before" Hi. How are you doing? "after" Hi. How are you doing?