Convert new lines to paragraphs


/ Published in: PHP
Save to your folder(s)

Turns /n to and /n/n to </p><p>

Usage:
echo stripslashes(nl2br(nls2p($text)));

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.