|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[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 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 14:00:01 2025 UTC |
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?