Skip to content

Instantly share code, notes, and snippets.

@AdrianSchneider
Created September 28, 2011 16:55
Show Gist options
  • Save AdrianSchneider/1248470 to your computer and use it in GitHub Desktop.
Save AdrianSchneider/1248470 to your computer and use it in GitHub Desktop.
Removes whitespace between HTML tags in PHP
$response = trim(preg_replace('/>\s+</', '><', $response));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment