title: php strip iframes and scripts tags (no htmlentities())
body: <p>I'm processing a xml file and sometimes there are 
      "iframes"
   and 
      "script"
  tags i need to get out , before i even 'xml-parse-it'</p>
  
  <p>I'm trying some regular expressions but i'm getting it wrong ! :(</p>
  
  <p>test string:</p>
  
  <pre><code>      $teststring = 'p&amp;gt;&amp;lt;iframe src="http://www.facebook.com/plugins/like.php?href=abcdef&amp;amp;amp;layout=standard&amp;amp;amp;show_faces=false&amp;amp;amp;width=450&amp;amp;amp;action=like&amp;amp;amp;colorscheme=dark&amp;amp;amp;height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:35px;" allowtransparency="true"&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/p&amp;gt;';
  
   //todo clean this up// found this function on net. //more legacy stufff
      $Rules = array(
           '@&lt;script[^&gt;]*?&gt;.*?&lt;/script&gt;@si', // Strip out javascript                
          '@&amp;(cent|#162);@i', //   Cent 
          '@&amp;(pound|#163);@i', //   Pound
          '@&amp;(copy|#169);@i', //   Copyright
          '@&amp;(reg|#174);@i', //   Registered
          '@&amp;#(d+);@e', // Evaluate as php
  ---&gt; PROBLEM--&gt; '@&amp;lt;iframe [^&amp;lt;]&amp;lt;.*?&amp;lt;\/iframe&amp;gt;@i',
  
      );
  
      $Replace = array(
           '',
          chr( 162 ),
          chr( 163 ),
          chr( 169 ),
          chr( 174 ),
          'chr()',
          '',
  
      );
          //expecting &lt;p&gt;&lt;/p&gt;
      $data = preg_replace( $Rules, $Replace, $teststring);
  
  
              echo $data;
  </code></pre>