Is there a way in Javascript to wholesale escape a large number of characters from a string?

In PHP, one can use the following Syntax:
$var = <<<ENDB
Content with any character I want - anything goes
ENDB;

That creates a variable with its contents being *anything and everything* that's between the ENDB's - including doublequotes (") and other characters that would normally have to be individually escaped.

Is there any equivalent in Javascript for including a large amount of text with characters that would normally have to be escaped?