MDL-57447 block_myoverview: escape html content on course summary
authorSimey Lameze <simey@moodle.com>
Mon, 27 Feb 2017 07:10:36 +0000 (15:10 +0800)
committerDamyon Wiese <damyon@moodle.com>
Mon, 3 Apr 2017 03:36:32 +0000 (11:36 +0800)
Part of MDL-55611 epic.

blocks/myoverview/templates/course-summary.mustache

index c0a32f7..012784d 100644 (file)
@@ -28,7 +28,7 @@
         "summary": "It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout."
     }
 }}
-<div class="d-inline-block m-l-1">
+<div class="d-inline-block m-x-1">
     <div class="course-info-container" id="course-info-container-{{id}}">
         <div class="row m-b-1">
             <!-- Will be replaced by the chart after course completion changes are done. -->
@@ -41,7 +41,7 @@
             {{startdate}} - {{enddate}}
         </div>
         <div class="row text-muted">
-            {{summary}}
+            {{{summary}}}
         </div>
     </div>
 </div>
\ No newline at end of file