Created
May 31, 2013 21:29
-
-
Save pbojinov/5688142 to your computer and use it in GitHub Desktop.
Multi-line strings in JavaScript and Node.js - http://tomasz.janczuk.org/2013/05/multi-line-strings-in-javascript-and.html?m=1
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
var html = (function () {/* | |
<!DOCTYPE html> | |
<html> | |
<body> | |
<h1>Hello, world!</h1> | |
</body> | |
</html> | |
*/}).toString().match(/[^]*\/\*([^]*)\*\/\}$/)[1]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment