diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 530e71e9a8..5ee33e8739 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -199,7 +199,7 @@
{{- if not $title }}
{{- $title = $to.Site.Title }}
{{- end }}
-
{{ if $remaining }}{{end}}{{ $title }}{{ if $remaining }}{{ end }}{{ if $remaining }} {{ default ">" .Site.Params.breadcrumbSeparator }} {{ end }}
+ {{ if $remaining }}{{end}}{{ $title }}{{ if $remaining }}{{ end }}{{ if $remaining }}{{ (printf " %s " (default ">" .Site.Params.breadcrumbSeparator)) | safeHTML }}{{ end }}
{{- end }}
{{- end }}
{{- end }}
\ No newline at end of file