Hi Shawna

Look up preg_replace();

Assuming $file is the contents of your file -

$file = preg_replace("/<img.*?>/i", "", $file);


<[EMAIL PROTECTED]> wrote in message
> I've created a "printer-friendly" version of a page (PHP/MySQL) and want
> have just the <img> tags automatically removed.  I thought about using
> strip_tags() but I'm not able to predict what html tags to include as the
> exceptions so that they would not be removed too.  How can I do this?
> you!
> - Shawna

PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to