[development] Strip_tags and JS
    Jamie Holly 
    hovercrafter at earthlink.net
       
    Thu Jun 10 19:39:19 UTC 2010
    
    
  
$text= preg_replace('/<script.*?<\/script>/xmsi', '', $text) should do 
the trick.
Jamie Holly
http://www.intoxination.net
http://www.hollyit.net
On 6/10/2010 3:10 PM, nan wich wrote:
> It appears that javascripts are not stripped by strip-tags because 
> they are actually _between_ tags, not part of a tag. Does anyone have 
> any magic to strip the scripts out too?
>
> /*Nancy E. Wichmann, PMP*/
>
> Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. 
> King, Jr.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20100610/1aacc0ec/attachment.html 
    
    
More information about the development
mailing list