Ian Holsman wrote:

In a nutshell,
it is very hard to strip whitespace out of HTML, and have the resulting file still be as valid as the old one. Browsers are very forgiving on something and not on others. for example,
you should not strip code inside of javascript, or 'pre' tags.

The filter does not try to be content safe - otherwise the resulting processing burden would mean "just use deflate and save yourself the hassle". It is assumed that an admin deploying the filter knows what they are doing when they do so. We ship with a module that changes case of the content - that will very likely break javascript too, but again, it assumes the user knows that it's for.


Regards,
Graham
--

Reply via email to