Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

fix(template): add template HTML

LinkinStarsbf4f8a70dce6
diff --git a/ui/template/footer.html b/ui/template/footer.html
index 685a8c11..d69b164f 100644
--- a/ui/template/footer.html
+++ b/ui/template/footer.html
@@ -31,7 +31,7 @@
</footer>
</div>
<!--customize_footer-->
-{{if .FooterCode }}{{.FooterCode}}{{end}}
+{{if .FooterCode }}{{.FooterCode | templateHTML}}{{end}}
<!--customize_footer-->
</body>
</html>
diff --git a/ui/template/header.html b/ui/template/header.html
index 9b4aa93d..25741bf4 100644
--- a/ui/template/header.html
+++ b/ui/template/header.html
@@ -77,13 +77,13 @@
content="{{if $.siteinfo.Branding.Favicon }}{{$.siteinfo.Branding.Favicon}}{{else}}{{$.baseURL}}/favicon.ico{{end}}"}
/>
<!--customize_head-->
- {{if .HeadCode }} {{.HeadCode}} {{end}}
+ {{if .HeadCode }} {{.HeadCode | templateHTML}} {{end}}
<!--customize_head-->
</head>
<body>
<!--customize_header-->
- {{if .HeaderCode }} {{.HeaderCode}} {{end}}
+ {{if .HeaderCode }} {{.HeaderCode | templateHTML}} {{end}}
<!--customize_header-->
<div id="root">