Skip to content

Instantly share code, notes, and snippets.

@MichaelPaulukonis
Created November 14, 2013 14:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MichaelPaulukonis/7468195 to your computer and use it in GitHub Desktop.
Save MichaelPaulukonis/7468195 to your computer and use it in GitHub Desktop.
JS ES5 hack for multi-line strings from http://css.dzone.com/articles/javascript-es-5-hack-clean
var MultiString = function(f) {
return f.toString().split('\n').slice(1, -1).join('\n');
}
var ms = MultiString(function() {/**
line one
line two
line 'three'
**/});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment