RE: [PHP] text to HTML

2007-08-26 Thread Bastien Koert
the closest is nl2br() which converts line breaks to tags. Other than that, you would need to look at regex manipulation to make those changes. Bastien From: [EMAIL PROTECTED] To: php-general@lists.php.net Date: Sun, 26 Aug 2007 10:36:06 -0400

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.p How are you doing?p http://php.net/nl2br You could also do: echo p, str_replace(\n, /p\n/p, $text), /p\n; Another option, if