ID: 13574
Updated by: sander
Reported By: [EMAIL PROTECTED]
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] [EMAIL PROTECTED]
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] [EMAIL PROTECTED]
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
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]