Whitespace filter
| From: | Justin Hendrickson | Date: | Fri, 05 Dec 2003 13:51:21 +0000 |
| Subject: | Whitespace filter | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-172041@lists.php.net to get a copy of this message | ||
Does anyone have an eloquent way to strip redundant whitespace without harming whitespace inside <pre>, <textarea> or <script> tags? I'd like to post-filter my HTML before returning it to the client and I'm not all that great with regular expressions.