Re: need help with line breaks
| From: | Joe Stump | Date: | Sat, 11 Nov 2000 09:11:20 +0000 |
| Subject: | Re: need help with line breaks | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-24769@lists.php.net to get a copy of this message | ||
$text = eregi_replace('<br>',"\n",$text);
--joe
On Sat, Nov 11, 2000 at 09:27:34AM +0200, Siim Einfeldt aka Itpunk wrote:
>
> hi all
>
> When I write something to a form textarea and then to the database, it
> doesn`t leave any marks of linebreaks at all, so all comes out like one
> big text without any breaks. Now, if I use nl2br, then breaks are there
> where they are supposed to be, but when i want to change the text, then I
> see these annoying <BR>-s inside the text. How to change it?
>
>
> Siim EInfeldt
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
================================================================================
= Joe Stump joestump98@yahoo.com http://www.miester.org =
================================================================================
"Real programmers don't comment their code.
It was hard to write, it should be hard to understand."