From: hickert Date: Thu, 9 Jun 2005 12:10:00 +0000 (+0000) Subject: Search is now W3C conform X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ec056eb5bf38a5e8e341195b1c9765d52b42c274;p=gosa.git Search is now W3C conform git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@626 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/html/helpviewer.php b/html/helpviewer.php index 3f91d4b90..342cc80f3 100644 --- a/html/helpviewer.php +++ b/html/helpviewer.php @@ -91,24 +91,26 @@ function myone($par1,$par2,$par3,$par3) #fixme Theres a better method to handle replacment , preg_replace can handle arrays , this, would be little easier $i=0; $replacements=array(); -$replacements['range'][$i]['from'] = "//"; +$replacements['range'][$i]['from'] = "@@si"; $replacements['range'][$i]['to'] = ""; $i++; $replacements['range'][$i]['from'] = "@]*?>.*?DIV>@si"; $replacements['range'][$i]['to'] = ""; $i++; +$replacements['range'][$i]['from'] = "''"; +$replacements['range'][$i]['to'] = ""; +$i++; $replacements['range'][$i]['from'] = "/
/"; $replacements['range'][$i]['to'] = ""; $i++; $replacements['range'][$i]['from'] = "@]*?>.*?ADDRESS>@si"; $replacements['range'][$i]['to'] = ""; $i++; -$replacements['range'][$i]['from'] = "/<\/BODY.*>/"; +$replacements['range'][$i]['from'] = "@<\/BODY[^>]*?>.*?HTML>@si"; $replacements['range'][$i]['to'] = ""; $i++; - /* Bsp . : Replace Table Head to specified tableheader */ -$replacements['range'][$i]['from'] = "@]*?>.*?>@si"; +$replacements['range'][$i]['from'] = "''"; $replacements['range'][$i]['to'] = "" ; /* Default pages */ @@ -333,13 +335,10 @@ function getcontents($file) function remove_unwanted_tags($str,$replacements) { #fixme This solution is ... ARRG - $str=str_replace("\n","||WasBr||",$str); foreach($replacements['range'] as $var) { $str=preg_replace($var['from'],$var['to'],$str); } - - $str=str_replace("||WasBr||","\n",$str); return($str); }