Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A Template to have Multiline String without appending strings
//its a js hack for having multiline string like python`s ''' multi line '''
//source: https://tomasz.janczuk.org/2013/05/multi-line-strings-in-javascript-and.html
var html = (function () {/*
multiline with
white spaces
and newlines
*/}).toString().match(/[^]*\/\*([^]*)\*\/\}$/)[1];
@abilogos
Copy link
Author

abilogos commented Feb 13, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment