I need something like heredoc in JavaScript. Do you have any ideas for this? I need cross-browser functionality.
I found this:
heredoc = \'\\
Try ES6 String Template, you can do something like
var hereDoc = ` This is a Multiple Line String `.trim() hereDoc == 'This\nis\na\nMultiple\nLine\nString' => true
You can use this great feature even in older browsers with TypeScript