How to add to string a large text with single and double quo

I’m sure there must be an easier way to add a large text to a string
variable than doing

temp_string = ''a very large text"

For example my text is:

var badge = '';
badge += '<div class="upb_date"><span class="upb_text">Jan

8’;
badge += ‘

COMSWARE 2007 HE SECOND
IEEE/Create-Net/…’;
badge += ’ @ NOT YET DECIDED’;
badge += ‘
’;
document.write(badge);

I want all that in a variable @badge_text. How do I do that easily?

Thanks

You can use straight Ruby for this. String has a “here” document.
Itworks liek this:

badge = <<MY_TEXT_END

Jan 8
COMSWARE 2007 HE SECOND IEEE/Create-Net/... @ NOT YET DECIDED
MY_TEXT_END

badge now has all of this, with all single and double qoutes escaped
with a '' character. Note that new lines are preserved in the string
as ‘\n’.

For all other info, check out “String” in
http://ruby-doc.org/docs/ProgrammingRuby/html/tut_stdtypes.html

Bart