how to strip just the <img> tag from html file?
| From: | sgibbs at vt dot globalhealth dot org | Date: | Mon, 16 Jul 2001 11:53:09 +0000 |
| Subject: | how to strip just the <img> tag from html file? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-58036@lists.php.net to get a copy of this message | ||
I've created a "printer-friendly" version of a page (PHP/MySQL) and want to
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? Thank
you!
- Shawna