Re: How to strip off all html-comments
| From: | Mike Eheler | Date: | Mon, 31 Dec 2001 17:44:42 +0000 |
| Subject: | Re: How to strip off all html-comments | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-79136@lists.php.net to get a copy of this message | ||
Checkout the preg_replace page in the PHP manual (at http://www.php.net/manual/en). There is an example there on removing all HTML tags. You can just modify it to work on just comments.
Mike
Martin wrote:
Hello! How can I easily strip off all html-comments (<! Comment >) from a string? Martin