Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/format.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ function replaceHighlightTags(value, highlightPreTag, highlightPostTag) {
// If the value of the attribute is a string,
// the highlight is applied by MeiliSearch (<em> tags)
// and we replace the <em> by the expected tag for InstantSearch
highlightPreTag = highlightPreTag || '__ais-highlight__'
highlightPostTag = highlightPostTag || '__/ais-highlight__'
if (isString(value)) {
newHighlightValue = value
.replace(/<em>/g, highlightPreTag)
Expand Down