Skip to content

Instantly share code, notes, and snippets.

@sergejmueller
Last active February 3, 2016 08:01
Show Gist options
  • Select an option

  • Save sergejmueller/e33b48f8e2e729f91fee to your computer and use it in GitHub Desktop.

Select an option

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