Hacker News new | ask | show | jobs
by ars 4058 days ago
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.)