This question is related to my previous post.
I'm trying to "build" a link to a specific range inside a Sheet. So, I'm building something like this https://docs.google.com/spreadsheets/d/1XXXXXX/edit#gid=99999999&range=A2:D2 The build is working fine but when it runs through the template and evaluate process something is lost and the "&" turns into "%E2%A6%A5". Any thoughts?
Edit1: Here's a minimal script snippet
var link = 'https://docs.google.com/spreadsheets/d/XXXXXX#gid=999999' + "&" + "&range=A" + (i + 2) + ":D" + (i + 2);
var emailtemplate = HtmlService.createTemplateFromFile('Monthly pulse check');
emailtemplate.OOOPULSE = link;
var emailbody = emailtemplate.evaluate();
<!DOCTYPE html>
<html>
<head>
<base target="_top">
</head>
<body>
<?!=OOOPULSE?>
<p> </p>
<p> </p>
</body>
</html>