Created
February 18, 2014 18:43
-
-
Save NoMan2000/9077125 to your computer and use it in GitHub Desktop.
Strip Javascript whitespace
This file contains hidden or 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
var trimmedResponse = xmlHttp.responseText.replace(/^\s*/,'').replace(/\s*$/,'').toLowerCase(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment