View Single Post
Old 06-09-2008, 02:08 PM   #2 (permalink)
Enfernikus
The Addict
 
Enfernikus's Avatar
 
Join Date: Jun 2008
Posts: 335
Thanks: 2
Enfernikus is on a distinguished road
Default

Well then you'd have to disable all <scripts> tags, and you could use Regex to do so. I'm horrible with Regex so it probably won't be close to this

PHP Code:

$szRegex 
'/<script .* </script>/Usx';
preg_match_all($szRegex,$szContent,$aMatches);
for(
$i 0$i count($aMatches); ++$i){
  
//just look for the matches and use str_replace to get them out

Enfernikus is offline  
Reply With Quote