Re: How to format memo text
| From: | Olivier DEMAH | Date: | Fri, 03 Nov 2000 12:23:35 +0000 |
| Subject: | Re: How to format memo text | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-23557@lists.php.net to get a copy of this message | ||
On Vendredi 3 Novembre 2000 06:46, GMansky wrote:
> I have a memo text field in my database. When I use 'Echo' command, the
> content of the memo field is sent continuously. How could I break it down
> so it appears as it was entered, with CR/LF?
>
> Thanks,
> George
use the htmlentities function like that :
$text = htmlentities($text);
and then echo $text will display the content with the correct format
--
Membre fondateur de PhpFR : http://www.phpfr.org
Membre de l'Association Gcu : http://gcu-squad.org
Membre de l'Association LinuxFr : http://linuxfr.org