Page is a not externally linkable
- Code, Content, and Presentation
-- PHP Server Side Scripting
---- preg replace question


alphacooler - 5:13 pm on Oct 9, 2006 (gmt 0)


I've got a preg_replace that tosses <li></li>'s around every new line. I know it works on windows machines, but I know the code doesn't account for any other systems.

$body = preg_replace("/\n/","</li><li>",$body);

What should I change here?

Thanks!


Thread source:: http://www.webmasterworld.com/php/3114319.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com