News for hackers. Stuff that matters.
Re:Python alternatives for PHP functions by pornel on Tuesday December 25, 2012 @04:26PM (#4967141)
It does less than making HTML whitespace-significant. It's unsuitable for use on HTML markup, because newlines in <script>, inside tags, attributes, comments, etc. should not be changed.

It's only safe and reliable as a part of nl2br(htmlspecialchars()) combo, so a function that does both could have been a better idea.

There are no comments on this comment yet.