久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      PHP html標(biāo)簽正則替換并可自定義正則規(guī)則

      復(fù)制代碼 代碼如下:
      <?php
      function pregstring($str){
      $strtemp = trim($str);
      $search = array(
      “|’|Uis”,
      “|<script[^>].*?</script>|Uis”, // 去掉 javascript
      “|[字定義].*[/字定義]|Uis”, // 去掉縮略圖
      “|<[/!].*?[^<>]*?>|Uis”, // 去掉 HTML 標(biāo)記
      “‘>(quot|#34);’i”, // 替換 HTML 實體
      “‘>(amp|#38);’i”,
      “|,|Uis”,
      “|[s]{2,}|is”,
      “[>nbsp;]isu”,
      “|[$]|Uis”,
      );
      $replace = array(
      “`”,
      “”,
      “”,
      “”,
      “”,
      “”,
      “”,
      ” “,
      ” “,
      ” “,
      );
      $text = preg_replace($search, $replace, $strtemp);
      return $text;
      }
      echo pregstring(字符串); //使用方法
      ?>
      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號