News for hackers. Stuff that matters.
Re:The compiler flag that time forgot by lelandbatey on Monday May 04, 2015 @09:11PM (#9490346)
Wow that's odd. Also, PHP has a built in function for filtering filtering plain-text user input to create HTML? That's... not something I would have expected.
Re:The compiler flag that time forgot by nkozyra on Monday May 04, 2015 @10:01PM (#9490476)
Sarcasm? PHP has a built-in function for any oddball thing you can think of.
Re:The compiler flag that time forgot by duskwuff on Tuesday May 05, 2015 @03:12AM (#9491237)
Personal fav: gzgetss(). Reads a line from a gzip file handle and strips HTML tags from it. Why? I don't know!

http://php.net/manual/en/function.gzgetss.php

Re:The compiler flag that time forgot by ars on Monday May 04, 2015 @11:17PM (#9490683)
It's super useful. If you have a textarea for users to type paragraphs into you can use nl2br to output it more or less the same, but in HTML. (Be sure and escape the text before nl2br not after.)