diff --git a/code/LeftAndMain.php b/code/LeftAndMain.php index 3f85f09c..507baf5a 100644 --- a/code/LeftAndMain.php +++ b/code/LeftAndMain.php @@ -578,8 +578,8 @@ class LeftAndMain extends Controller { ); // Trim off the outer tag - $html = ereg_replace('^[ \t\r\n]*]*>','', $html); - $html = ereg_replace(']*>[ \t\r\n]*$','', $html); + $html = preg_replace('/^[\s\t\r\n]*]*>/','', $html); + $html = preg_replace('/<\/ul[^>]*>[\s\t\r\n]*$/','', $html); return $html; }