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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 23:01:29 2024 UTC