MDL-82558 h5p: escape template error/exception content.

This commit is contained in:
Paul Holden 2024-07-22 22:33:03 +01:00 committed by Ilya Tregubov
parent 29ab56c4d2
commit 5b168b055f

View File

@ -43,17 +43,17 @@
<div class="container mt-5">
{{#exception}}
<div class="alert alert-block fade in alert-danger my-2" role="alert">
{{{ exception }}}
{{ . }}
</div>
{{/exception}}
{{#info}}
<div class="alert alert-block fade in alert-info my-2" role="alert">
{{{ . }}}
{{ . }}
</div>
{{/info}}
{{#error}}
<div class="alert alert-block fade in alert-warning my-2" role="alert">
{{#code}}{{{code}}} : {{/code}}{{{ message }}}
{{#code}} {{ . }} : {{/code}} {{ message }}
</div>
{{/error}}
</div>