you do not need to figure out the image actually..
Rather than thinking about what html tags you do not want to allow, just think about the ones that you do want to allow.
PHP has a native function to do all of this.
Before displaying the content of your page process it using the following
<?PHP
$description = strip_tags($description, '<b><p><a>');
?>
Here, I told the variable $description to not have any tags other than the B P and A tags. All other tags will be stripped out.
Use this method on any and all variables which might have image tags that you do not want, but remember to add as the second argument, those tags that you do want.
Sage
Reputation Points: 10
Solved Threads: 6
Junior Poster in Training
Offline 86 posts
since Nov 2007