Skip to content

Instantly share code, notes, and snippets.

@sergejmueller
Last active February 3, 2016 08:01
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sergejmueller/e33b48f8e2e729f91fee to your computer and use it in GitHub Desktop.
Save sergejmueller/e33b48f8e2e729f91fee to your computer and use it in GitHub Desktop.
Remove line breaks and tabs from HTML with mod_substitute Apache module. For Nginx: https://github.com/sergejmueller/sergejmueller.github.io/wiki/Nginx:-nginx_substitutions_filter
AddOutputFilter SUBSTITUTE html
Substitute "s/[\n\t]//i"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment