06-09-2008, 03:08 PM
|
#2 (permalink)
|
|
The Contributor
Join Date: Jun 2008
Posts: 97
Thanks: 1
|
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 }
|
|
|
|