I've used a cut down verson of your code to do some wikitext parsing, the last paragraph isn't closed with your version. I used a slightly modified end: $text = str_replace("\r\n\r\n", '</p><p>', $text,$count); if($count>0) $text .= '</p>';
↧