Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
What about Html minification for the generated pages?
What about Html minification for the generated pages?
Comments
Comment #1
bt82 CreditAttribution: bt82 commentedi would be interested in this feature.
Comment #2
delykj CreditAttribution: delykj commented+1
Reference:
http://code.google.com/p/page-speed/wiki/MinifyHtml
http://stackoverflow.com/questions/728260/html-minification
Comment #3
Andrey Zakharov CreditAttribution: Andrey Zakharov commentedSubscribe
Comment #4
Ela CreditAttribution: Ela commentedsubscribing
Comment #5
momper CreditAttribution: momper commentedsub
Comment #6
broncomania CreditAttribution: broncomania commentedsubscribing
Comment #7
granttoth CreditAttribution: granttoth commented+1
Comment #8
myared CreditAttribution: myared commentedsubscribe
Comment #9
mikeytown2 CreditAttribution: mikeytown2 commentedHook is already in place
Comment #10
marios88 CreditAttribution: marios88 commented+1
Comment #11
TNmoxa CreditAttribution: TNmoxa commentedsubscribing
Comment #12
willeifler CreditAttribution: willeifler commentedsubscribing
Comment #13
marios88 CreditAttribution: marios88 commentedhow about using htmlpurifier module?
http://drupal.org/project/htmlpurifier
http://htmlpurifier.org/
Does anyone have experience using this?
Comment #14
mikeytown2 CreditAttribution: mikeytown2 commentedThis should do it
Comment #15
marios88 CreditAttribution: marios88 commentedJust noticed
in /admin/settings/performance/boost
Using "_htmlpurifier_process($data, 1);" as you proposed
Would this have the desired effect?
Comment #16
mstrelan CreditAttribution: mstrelan commentedThis hook no longer exists in 7.x, is there a reason for that?
Comment #17
AdamGerthel CreditAttribution: AdamGerthel commentedLooking for this as well. Anyone have any idea how to best implement it? Either through Boost or before Boost.
Comment #18
damic CreditAttribution: damic commentedYou can try this:
http://iconsulting-fr.com/contribs/drupal-7-minify-html-output
Comment #19
tfranz CreditAttribution: tfranz as a volunteer commentedThe Drupal Module "Minify" has an option to minify the html-output bevor it is delivered to Boost:
https://www.drupal.org/project/minify
Comment #20
C-LogemannI didn't checked this by myself but it seems the right way to organize "minify" in a way as suggested by @tfranz outside of the boost module. On the other side I'm following a strategy for Drupal 8 version to make boost a more lean module. So I colose this feature request as "won't fix".