#21121 [Com]: < br > in notes
| From: | sebastian dot haller at freesurf dot ch | Date: | Mon, 30 Dec 2002 13:34:22 +0000 |
| Subject: | #21121 [Com]: < br > in notes | ||
| References: | 1 | Groups: | php.mirrors |
| Request: | Send a blank email to php-mirrors+get-14568@lists.php.net to get a copy of this message | ||
ID: 21121
Comment by: sebastian.haller@freesurf.ch
Reported By: sebastian.haller@freesurf.ch
Status: Open
Bug Type: Website problem
Operating System: Win98
PHP Version: 4.3.0RC3
New Comment:
Here is where the problem occurs:
http://www.php.net/source.php?url=/include/layout.inc
/* this 'fixing' code will go away eventually. */
$fixes = array('<br>','<p>','</p>');
reset($fixes);
while (list(,$f)=each($fixes)) {
$text=str_replace(htmlspecialchars($f), $f, $text);
$text=str_replace(htmlspecialchars(strtoupper($f)), $f, $text);
}
Previous Comments:
------------------------------------------------------------------------
[2002-12-29 09:25:57] hugo@gewis.nl
Grmbl.
I counted on these tags also being expanded - they weren't.
Try <br>
Hugo.
------------------------------------------------------------------------
[2002-12-29 09:25:00] hugo@gewis.nl
Try writing &lt;br&gt; - I guess the form-input isn't changed,
which means this shows up as literal text in HTML - in which that
particular string has meaning and is interpreted by most browsers.
Hugo.
------------------------------------------------------------------------
[2002-12-20 17:14:01] sebastian.haller@freesurf.ch
I can't write < br > (without spaces) in notes. It's always replaces by
a 'new line'.
See for example
http://www.php.net/manual/de/function.nl2br.php
(trevor at verite dot
com / php at fendforyourself dot com)
or http://www.php.net/manual/de/function.htmlspecialchars.php
(the last comment 20 dec 2002, note in end)
PS: <br \> seems to work properly
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21121&edit=1