Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Article from 1.4 -> 1.5  (Read 2851 times)

Fotrane

  • Newbie
  • *
  • Karma: 1
  • Posts: 28
Article from 1.4 -> 1.5
« on: October 24, 2006, 09:34:50 pm »

Not sure if this will be useful or not, but I've found that using the following function in place of "nl2br" doing the trick for me.  Not sure if it will break any of "new" articles yet.

Code: [Select]
function nl2p($text) {
return "

" . str_replace("\r\n\r\n", "

\r\n

", $text) . "

";
}
Logged