diff --git a/template/screen-macro/DefaultScreenMacros.html.ftl b/template/screen-macro/DefaultScreenMacros.html.ftl index b27c80565..bfa1f32ed 100644 --- a/template/screen-macro/DefaultScreenMacros.html.ftl +++ b/template/screen-macro/DefaultScreenMacros.html.ftl @@ -206,7 +206,7 @@ ${sri.renderSection(.node["@name"])} <#if !boxType?has_content><#assign boxType = "default">
id="${contBoxDivId}">
- <#if boxHeader["@title"]?has_content>
${ec.getResource().expand(boxHeader["@title"]!"", "")}
+ <#if boxHeader["@title"]?has_content>
${ec.getResource().expand(boxHeader["@title"]!"", "")?html}
<#recurse boxHeader> <#if .node["box-toolbar"]?has_content>
diff --git a/template/screen-macro/DefaultScreenMacros.vuet.ftl b/template/screen-macro/DefaultScreenMacros.vuet.ftl index 640d8b7dc..f6fa1f9f2 100644 --- a/template/screen-macro/DefaultScreenMacros.vuet.ftl +++ b/template/screen-macro/DefaultScreenMacros.vuet.ftl @@ -78,7 +78,7 @@ ${sri.renderSection(.node["@name"])} <#assign boxHeader = .node["box-header"][0]!> <#assign boxType = ec.resource.expand(.node["@type"], "")!> <#if !boxType?has_content><#assign boxType = "default"> - id="${contBoxDivId}" type="${boxType}"<#if boxHeader??> title="${ec.getResource().expand(boxHeader["@title"]!"", "")}" :initial-open="<#if ec.getResource().expand(.node["@initial"]!, "") == "closed">false<#else>true"> + id="${contBoxDivId}" type="${boxType}"<#if boxHeader??> title="${ec.getResource().expand(boxHeader["@title"]!"", "")?html}" :initial-open="<#if ec.getResource().expand(.node["@initial"]!, "") == "closed">false<#else>true"> <#-- NOTE: direct use of the container-box component would not use template elements but rather use the 'slot' attribute directly on the child elements which we can't do here --> <#if boxHeader??> <#if .node["box-toolbar"]?has_content>