Forums / Developer / How to minify html / Comment65670
Marko Žmak
Tuesday 08 February 2011 3:12:12 am
Jerome, you could also take a look at the eztidy extension:
http://projects.ez.no/eztidy
It has included a template operator and output filter.
It won't completely minify your HTML, but it will remove unneeded spaces and format your HTML in a nice way.
But beware: When passign your HTML through eztidy all the tags that do not comply with the standard are removed. For example tags like <fb:like> get removed.
You can specify new blocklevel tags and new inline tags in eztidy.ini but for me it didn't work properly there were always some problems with the nonstandard tags.
-- Nothing is impossible. Not if you can imagine it! Hubert Farnsworth