unexpected token '>' when use underscore.js template in borswer, only Chrome works good
<p>A Syntax Error in IE11 is raised for my template as :</p>

<p>"unexpected token in safari and mobile safari"</p>

<p>It works well in Chrome</p>

<p>My template is as shown below . The data weekDays is two-dimensional array and calId is string.</p>

<pre><code>var weekDaysTemplate = _.template(
    "&lt;%" +
        "_.each(weekDays, week =&gt;" +
        "{ %&gt;" +
            "&lt;div class='weekDays_row'&gt;" + 
            "&lt;% _.each(week, day =&gt;" +
            "{" + 
                "if(day.notInMonth)" +
                "{ %&gt;" +
                    "&lt;div class='cal_day cal_notInMonth'&gt;&lt;/div&gt;" +
                "&lt;% }" +
                "else if(day.pastDay)" +
                "{ %&gt;" +
                    "&lt;div class='cal_day cal_disable'&gt;&lt;%= day.day %&gt;&lt;/div&gt;" +
                "&lt;% }" +
                "else if(day.beyondLastDay)" +
                "{ %&gt;" +
                    "&lt;div class='cal_day cal_disable'&gt;&lt;%= day.day %&gt;&lt;/div&gt;" +
                "&lt;% }" +
                "else" +
                "{ %&gt;" +
                    "&lt;div class='cal_day' id='&lt;%= calId %&gt;_cal_day_&lt;%= day.utcTime %&gt;' data-utc='&lt;%= day.utcTime %&gt;'&gt;&lt;%= day.day %&gt;&lt;/div&gt;" +
                "&lt;% }" +
            "}); %&gt;" +
            "&lt;/div&gt;" + 
         "&lt;% });" +
     "%&gt;");
</code></pre>