We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents aac1f8a + 720bd00 commit 9e2c08fCopy full SHA for 9e2c08f
js/algoliasearch/internals/frontend/common.js
@@ -230,6 +230,9 @@ document.addEventListener("DOMContentLoaded", function (e) {
230
} else {
231
hit.url = algoliaConfig.baseUrl + '/catalogsearch/result/?q=' + hit.query;
232
}
233
+
234
+ var toEscape = hit._highlightResult.query.value;
235
+ hit._highlightResult.query.value = algoliaBundle.autocomplete.escapeHighlightedString(toEscape);
236
237
return algoliaConfig.autocomplete.templates.suggestions.render(hit);
238
0 commit comments