1. 过滤图片样式
    • 使用正则表达式过滤掉图片的style属性。
    • 示例代码:
      <?php
      $xstyle = $navinfor['newstext'];
      $xstyle = preg_replace('/style=.+?[\\'|\\"]/i', '', $xstyle);
      echo $xstyle;
      ?>