RE: [PHP] Htmlentities and Newlines?
| From: | John W. Holmes | Date: | Sun, 29 Sep 2002 00:42:57 +0000 |
| Subject: | RE: [PHP] Htmlentities and Newlines? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-118012@lists.php.net to get a copy of this message | ||
> Short question: following your advice, what would the data look like
in
> the
> db if I typed in:
>
> Hi Sascha.
> Next line is doubled.
>
> Double.
>
> How would that appear iun the db? In mine, it looks exactly like I
typed
> it
> above (using 1 & 2 with magic_quotes=on).
It depends on your viewer, I guess. It may appear as though it's all on
one line, but the new lines are there, regardless. Htmlentities()
doesn't do anything to linebreaks...
---John Holmes...