/ Published in: PHP
Turns /n to and /n/n to
Usage: echo stripslashes(nl2br(nls2p($text)));
Expand |
Embed | Plain Text
function nls2p($str) { ]\s*?[ ]){2,}#', '</p><p>', $str) . '</p>'); return $str; }
You need to login to post a comment.
