Skip to content

Instantly share code, notes, and snippets.

@NoMan2000
Created February 18, 2014 18:43
Show Gist options
  • Save NoMan2000/9077125 to your computer and use it in GitHub Desktop.
Save NoMan2000/9077125 to your computer and use it in GitHub Desktop.
Strip Javascript whitespace
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