当前位置:首页 » 多媒体相关

请问以下程序错在那里!!


$search   =   array   ("<script[^>]*?>.*?</script>si",     //   strip   out   javascript  
                                  "<[\/\!]*?[^<>]*?>si",                       //   strip   out   html   tags  
                                  "([\r\n])[\s]+",                                   //   strip   out   white   space  
                                  "&(quot|#34);i",                                   //   replace   html   entities  
                                  "&(amp|#38);i",  
                                  "&(lt|#60);i",  
                                  "&(gt|#62);i",  
                                  "&(nbsp|#160);i",  
                                  "&(iexcl|#161);i",  
                                  "&(cent|#162);i",  
                                  "&(pound|#163);i",  
                                  "&(copy|#169);i",  
                                  "&#(\d+);e");                                         //   evaluate   as   php  
   
  $replace   =   array   ("",  
                                    "",  
                                    "\\1",  
                                    "\"",  
                                    "&",  
                                    "<",  
                                    ">",  
                                    "   ",  
                                    chr(161),  
                                    chr(162),  
                                    chr(163),  
                                    chr(169),  
                                    "chr(\\1)");  
  $document="<body>";  
  $text   =   preg_replace   ($search,   $replace,   $document);    
  echo   $text;

.

推荐阅读

  • 摩托罗拉新机发布之V.600 [详细内容]
  • 豪华快艇 256MB影驰GF6200A率先入市 [详细内容]
  • CL55铃声和图片 [详细内容]
  • IT [详细内容]
  • LG魔镜U盘促销 256MB版本只要228元 [详细内容]
  • 小论CF62的“拒接电话” [详细内容]
  • IT [详细内容]
  • 网友回答:

    讨论区

    Login