|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21121 < br > in notes
Submitted: 2002-12-20 17:14 UTC Modified: 2003-01-02 20:40 UTC
Avg. Score:4.0 ± 1.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: sebastian dot haller at freesurf dot ch Assigned:
Status: Wont fix Package: Website problem
PHP Version: 4.3.0RC3 OS: Win98
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2002-12-20 17:14 UTC] sebastian dot haller at freesurf dot ch
I can't write < br > (without spaces) in notes. It's always replaces by a 'new line'.

See for example (trevor at verite dot com / php at fendforyourself dot com)
(the last comment 20 dec 2002, note in end)

PS: <br \> seems to work properly


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-29 09:25 UTC] hugo at gewis dot nl
Try writing &amp;lt;br&amp;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.

 [2002-12-29 09:25 UTC] hugo at gewis dot nl
I counted on these tags also being expanded - they weren't.

Try &lt;br&gt;

 [2002-12-30 07:34 UTC] sebastian dot haller at freesurf dot ch
Here is where the problem occurs:

/* this 'fixing' code will go away eventually. */
$fixes = array('<br>','<p>','</p>');
while (list(,$f)=each($fixes)) {
    $text=str_replace(htmlspecialchars($f), $f, $text);
    $text=str_replace(htmlspecialchars(strtoupper($f)), $f, $text);
 [2003-01-02 20:40 UTC]
Thats a good reason to use <br />. We can't fix that anyway.

Thank you.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 21 23:01:31 2024 UTC