PHP100 2019-03-27
代码如下:
<?php $str = preg_replace( "@<script(.*?)</script>@is", "", $str ); $str = preg_replace( "@<iframe(.*?)</iframe>@is", "", $str ); $str = preg_replace( "@<style(.*?)</style>@is", "", $str ); $str = preg_replace( "@<(.*?)>@is", "", $str ); ?>
代码如下:
$str= htmlspecialchars_decode($str);
代码如下:
$str= preg_replace("/<(.*?)>/","",$str);