<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:12pt"><DIV></DIV>
<DIV>Thank you, Jamie. I had already started building a filter and you statement worked better than my big loop.<BR>&nbsp;</DIV>
<P><FONT face="bookman old style, new york, times, serif" color=#ff007f size=4><EM><STRONG>Nancy E. Wichmann, PMP</STRONG></EM></FONT></P>
<P><FONT face="arial, helvetica, sans-serif">Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.</FONT></P>
<DIV><BR></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: arial, helvetica, sans-serif"><BR>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><FONT face=Tahoma size=2>
<HR SIZE=1>
<B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> Jamie Holly &lt;hovercrafter@earthlink.net&gt;<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> development@drupal.org<BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Thu, June 10, 2010 3:39:19 PM<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [development] Strip_tags and JS<BR></FONT><BR>$text= preg_replace('/&lt;script.*?&lt;\/script&gt;/xmsi', '', $text) should do the trick.<BR><PRE class=moz-signature>Jamie Holly
http://www.intoxination.net 
http://www.hollyit.net</PRE><BR>On 6/10/2010 3:10 PM, nan wich wrote: 
<BLOCKQUOTE type="cite">
<DIV style="FONT-SIZE: 12pt; COLOR: rgb(127,0,63); FONT-FAMILY: arial, helvetica, sans-serif">
<DIV>It appears that javascripts are not stripped by strip-tags because they are actually <U>between</U> tags, not part of a tag. Does anyone have any magic to strip the scripts out too?<BR>&nbsp;</DIV>
<P><FONT face="bookman old style, new york, times, serif" color=#ff007f size=4><EM><STRONG>Nancy E. Wichmann, PMP</STRONG></EM></FONT></P>
<P><FONT face="arial, helvetica, sans-serif">Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.</FONT></P></DIV></BLOCKQUOTE></DIV></DIV></div></body></html>