diff --git a/h5p/templates/h5perror.mustache b/h5p/templates/h5perror.mustache
index 8378b0fff98..df2ddf8918b 100644
--- a/h5p/templates/h5perror.mustache
+++ b/h5p/templates/h5perror.mustache
@@ -43,17 +43,17 @@
{{#exception}}
- {{{ exception }}}
+ {{ . }}
{{/exception}}
{{#info}}
- {{{ . }}}
+ {{ . }}
{{/info}}
{{#error}}
- {{#code}}{{{code}}} : {{/code}}{{{ message }}}
+ {{#code}} {{ . }} : {{/code}} {{ message }}
{{/error}}