php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-10-06 13:53 UTC] rasmus@php.net
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] sander@php.net
No feedback. Closing.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Feb 05 06:01:32 2025 UTC