美文网首页
php 过滤<script></script&

php 过滤<script></script&

作者: observerb | 来源:发表于2019-02-25 15:26 被阅读0次

    $line="111<script>asdfkjasdklfjaksdfjl;asdfkl</script>222";

    $a=preg_replace_callback(

        '/<script[\s\S]*?<\/script>/',

        function ($matches) {

            return strtolower($matches[0]);

        },

        $line

    );

    相关文章

      网友评论

          本文标题:php 过滤<script></script&

          本文链接:https://www.haomeiwen.com/subject/jgrgyqtx.html