Re: A little code here? :)

From: Date: Thu, 15 Feb 2001 11:18:41 +0000
Subject: Re: A little code here? :)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-39878@lists.php.net to get a copy of this message
On Thursday 15 February 2001 04:31, Dallas Kropka wrote: > I have a few text input boxes that I am using to allow the client to > compose emails for a mailing list... does anyone have a little snippet > that will take the "\n's" and turn them into <BR>'s? I would attempt > to > write one myself.... but Im not the best at ereg or replace code... nl2br () is the simple solution (as others already mentioned). Attached is a more sophisticated one I use in my code. It detects paragraphs (empty lines), and highlights URLs and email adresses. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) I saw God --------- and she was black.

Attachment: [text/x-c++] text2html.php
« previous php.general (#39878) next »