mirror of
https://github.com/discourse/discourse.git
synced 2025-05-15 17:03:02 +08:00
FIX: Search menu regression (#13321)
Turns out the extra `<span>` is crucial. (TODO: this codepath needs tests…)
This commit is contained in:
parent
bd2b2bcf9c
commit
45971d8c3c
@ -161,7 +161,9 @@ createSearchResult({
|
|||||||
this.siteSettings.use_pg_headlines_for_excerpt &&
|
this.siteSettings.use_pg_headlines_for_excerpt &&
|
||||||
result.topic_title_headline
|
result.topic_title_headline
|
||||||
? new RawHtml({
|
? new RawHtml({
|
||||||
html: emojiUnescape(result.topic_title_headline),
|
html: `<span>${emojiUnescape(
|
||||||
|
result.topic_title_headline
|
||||||
|
)}</span>`,
|
||||||
})
|
})
|
||||||
: new Highlighted(topic.fancyTitle, term)
|
: new Highlighted(topic.fancyTitle, term)
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user