MDL-63999 calendar: double escape event name on templates
authorSimey Lameze <simey@moodle.com>
Wed, 14 Nov 2018 04:30:35 +0000 (12:30 +0800)
committerSimey Lameze <simey@moodle.com>
Fri, 16 Nov 2018 05:56:54 +0000 (13:56 +0800)
calendar/templates/event_item.mustache
calendar/templates/month_detailed.mustache

index 109d86c..f1fec54 100644 (file)
@@ -58,7 +58,7 @@
             </div>
             {{#icon}}<div class="d-inline-block mt-1 align-top">{{#pix}} {{key}}, {{component}}, {{alttext}} {{/pix}}</div>{{/icon}}
             <div class="d-inline-block">
-                <h3 class="name d-inline-block">{{name}}</h3>
+                <h3 class="name d-inline-block">{{{name}}}</h3>
                 <span class="date pull-xs-right m-r-1">{{{formattedtime}}}</span>
                 <div class="location">{{#location}}{{{location}}}{{/location}}</div>
             </div>
index 9231fa8..fbf3fde 100644 (file)
@@ -83,7 +83,7 @@
                                     <ul>
                                         {{#events}}
                                         {{#underway}}
-                                            <li class="events-underway">[{{name}}]</li>
+                                            <li class="events-underway">[{{{name}}}]</li>
                                         {{/underway}}
                                         {{^underway}}
                                             <li data-region="event-item"
                                                         &nbsp;
                                                     </span>
                                                     {{> core_calendar/event_icon}}
-                                                    <span class="eventname">{{name}}</span>
+                                                    <span class="eventname">{{{name}}}</span>
                                                 </a>
                                             </li>
                                         {{/underway}}