我们为大家收集整理了关于php过滤html标签,以方便大家参考。
<?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 );
?>
希望大家可以学会php过滤html标签想了解更多精彩内容,请关注我们的网站!
相关推荐:
js去掉html标签样式