RE: [PHP] Wrapping text to store in the database
| From: | Don Read | Date: | Tue, 08 May 2001 21:33:12 +0000 |
| Subject: | RE: [PHP] Wrapping text to store in the database | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-51988@lists.php.net to get a copy of this message | ||
On 08-May-01 Romulo Roberto Pereira wrote:
> Hello!
>
> If a user drop a text like this in a textarea:
>
<snip>
> ---
>
> As you can see the text is simple and there are not any html tags. How do I
> do to add this elements so the text become something like this below, I mean
> how to wrap it up in html tags?
>
<snip again>
> Ideas?
nl2br()
Regards,
--
Don Read dread@texas.net
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.