Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest sNews - sNews 1.7 - with its own forums - for discussion and user mods.

Author Topic: Article from 1.4 -> 1.5  (Read 2649 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