Created
September 28, 2011 16:55
-
-
Save AdrianSchneider/1248470 to your computer and use it in GitHub Desktop.
Removes whitespace between HTML tags in PHP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$response = trim(preg_replace('/>\s+</', '><', $response)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment