mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 18:06:18 +08:00
FIX: Unescape emoji when pg headlines is used for search result blurb.
Follow-up to 8336c2235e
This commit is contained in:
parent
44f15d4281
commit
05e8c1ebf8
|
@ -4,6 +4,7 @@ import RawHtml from "discourse/widgets/raw-html";
|
|||
import { avatarImg } from "discourse/widgets/post";
|
||||
import { createWidget } from "discourse/widgets/widget";
|
||||
import { dateNode } from "discourse/helpers/node";
|
||||
import { emojiUnescape } from "discourse/lib/text";
|
||||
import { h } from "virtual-dom";
|
||||
import highlightSearch from "discourse/lib/highlight-search";
|
||||
import { iconNode } from "discourse-common/lib/icon-library";
|
||||
|
@ -153,7 +154,11 @@ createSearchResult({
|
|||
{ attributes: { "data-topic-id": topic.id } },
|
||||
this.siteSettings.use_pg_headlines_for_excerpt &&
|
||||
result.topic_title_headline
|
||||
? new RawHtml({ html: `<span>${result.topic_title_headline}</span>` })
|
||||
? new RawHtml({
|
||||
html: `<span>${emojiUnescape(
|
||||
result.topic_title_headline
|
||||
)}</span>`,
|
||||
})
|
||||
: new Highlighted(topic.fancyTitle, term)
|
||||
),
|
||||
];
|
||||
|
|
Loading…
Reference in New Issue
Block a user