diff --git a/core/src/main/resources/template/simple/debug.ftl b/core/src/main/resources/template/simple/debug.ftl
index 22f74fcc5..1664bc381 100644
--- a/core/src/main/resources/template/simple/debug.ftl
+++ b/core/src/main/resources/template/simple/debug.ftl
@@ -55,7 +55,7 @@
<#list stackObject.value.keySet() as propertyName>
<#if renderRow==true>
<#else> <#assign renderRow=false> #if>
| ${propertyName} |
- <#if stackObject.value.get(propertyName)?exists>${stackObject.value.get(propertyName).toString()}<#else>null#if> |
+ <#if stackObject.value.get(propertyName)?exists>${stackObject.value.get(propertyName).toString()?html}<#else>null#if> |
<#assign index= index + 1>
#list>
@@ -73,7 +73,7 @@
<#assign index=1>
<#list stack.context.keySet() as contextKey>
- | ${contextKey} | <#if stack.context.get(contextKey)?exists>${stack.context.get(contextKey).toString()}<#else>null#if> |
+ ${contextKey} | <#if stack.context.get(contextKey)?exists>${stack.context.get(contextKey).toString()?html}<#else>null#if> |
<#assign index= index + 1>
#list>