diff --git a/layouts/_default/list.mxdocsalgolia.json b/layouts/_default/list.mxdocsalgolia.json
index 5b0e0d6284d..5637f341c96 100644
--- a/layouts/_default/list.mxdocsalgolia.json
+++ b/layouts/_default/list.mxdocsalgolia.json
@@ -70,25 +70,25 @@ Define Global variables
{{- $startSlice = slicestr $processSlice 0 3 -}}
{{- /* Set up the heading level we are in */ -}}
{{- if eq $startSlice "
%s" $uniqueHierarchy $h6 -}}
{{- end -}}
- {{- $text = trim (htmlUnescape ($processSlice | plainify)) " " -}}
+ {{- /* strings.TrimSpace strips all Unicode whitespace including \r, \n, \t, and non-breaking spaces ( ) that trim " " misses */ -}}
+ {{- $text = strings.TrimSpace (htmlUnescape ($processSlice | plainify)) -}}
{{- $scratch.SetInMap $uniqueHit "text" $text -}}
{{- $scratch.SetInMap $uniqueHit "mendix_version" $pageDot.Params.mendix_version -}}
{{- $scratch.SetInMap $uniqueHit "time_stamp" $pageDot.Lastmod.UTC.Unix -}}