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.
1 parent 14f4b9e commit 4b2203eCopy full SHA for 4b2203e
src/format.js
@@ -5,6 +5,8 @@ function replaceHighlightTags(value, highlightPreTag, highlightPostTag) {
5
// If the value of the attribute is a string,
6
// the highlight is applied by MeiliSearch (<em> tags)
7
// and we replace the <em> by the expected tag for InstantSearch
8
+ highlightPreTag = highlightPreTag || '__ais-highlight__'
9
+ highlightPostTag = highlightPostTag || '__/ais-highlight__'
10
if (isString(value)) {
11
newHighlightValue = value
12
.replace(/<em>/g, highlightPreTag)
0 commit comments