Bug #13574 Updated: strip_tags() adds space after '\n'
| From: | sander@php.net | Date: | Fri, 09 Nov 2001 19:53:29 +0000 |
| Subject: | Bug #13574 Updated: strip_tags() adds space after '\n' | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-69909@lists.php.net to get a copy of this message | ||
ID: 13574
Updated by: sander
Reported By: sonic@sonic.sk
Old Status: Feedback
Status: Closed
Bug Type: Strings related
Operating System: UNIX
PHP Version: 4.0.6
New Comment:
No feedback. Closing.
Previous Comments:
------------------------------------------------------------------------
[2001-10-06 13:53:15] 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-10-06 13:47:40] sonic@sonic.sk
strip_tags() adds a space after '\n', when string does not contain any html tags
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=13574&edit=1