Bug #13574 Updated: strip_tags() adds space after '\n'
| From: | rasmus@php.net | Date: | Sat, 06 Oct 2001 17:53:15 +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-67437@lists.php.net to get a copy of this message | ||
ID: 13574
Updated by: rasmus
Reported By: sonic@sonic.sk
Old Status: Open
Status: Feedback
Bug Type: *General Issues
Operating System: UNIX
PHP Version: 4.0.6
New Comment:
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?
Previous Comments:
------------------------------------------------------------------------
[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