|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13574 strip_tags() adds space after '\n'
Submitted: 2001-10-06 13:47 UTC Modified: 2001-11-09 14:53 UTC
From: sonic at sonic dot sk Assigned:
Status: Closed Package: Strings related
PHP Version: 4.0.6 OS: UNIX
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: sonic at sonic dot sk
New email:
PHP Version: OS:


 [2001-10-06 13:47 UTC] sonic at sonic dot sk
strip_tags() adds a space after '\n', when string does not contain any html tags


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-10-06 13:53 UTC]
I can't reproduce this
For example, this code:
    $text = "This is just a test\nLine 2\nLast line";
    echo strip_tags($text);
Produces this (output run through od -c):
0000000   T   h   i   s       i   s       j   u   s   t       a       t
0000020   e   s   t  \n   L   i   n   e       2  \n   L   a   s   t    
0000040   l   i   n   e
No extra spaces anywhere.  Could you show me a simple example that does this for you?
 [2001-11-09 14:53 UTC]
No feedback. Closing.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Mon Dec 04 04:01:27 2023 UTC