MDL-62008 output: Help icon text is escaped
authorDamyon Wiese <damyon@moodle.com>
Mon, 4 Feb 2019 05:28:28 +0000 (13:28 +0800)
committerDamyon Wiese <damyon@moodle.com>
Mon, 4 Feb 2019 05:28:28 +0000 (13:28 +0800)
The argument to render the pix_icon template from the help_icon template should not
be escaped, they will be escaped by the pix_icon template when it generates the HTML.

theme/boost/templates/core/help_icon.mustache

index ed8881e..a52440b 100644 (file)
@@ -21,5 +21,5 @@
     data-container="body" data-toggle="popover"
     data-placement="{{#ltr}}right{{/ltr}}{{^ltr}}left{{/ltr}}" data-content="{{text}} {{completedoclink}}"
     data-html="true" tabindex="0" data-trigger="focus">
-  {{#pix}}help, core, {{alt}}{{/pix}}
+  {{#pix}}help, core, {{{alt}}}{{/pix}}
 </a>