Merge branch 'develop' into hooks-migration
This commit is contained in:
commit
3b745c6171
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ import { Status as BaseStatus, StatusEdit as BaseStatusEdit, CustomEmoji } from
|
|||
import emojify from 'pl-fe/features/emoji';
|
||||
import { makeEmojiMap } from 'pl-fe/utils/normalizers';
|
||||
|
||||
const sanitizeTitle = (text: string, emojiMap: any) => DOMPurify.sanitize(emojify(escapeTextContentForBrowser(text), emojiMap), { ALLOWED_TAGS: [] });
|
||||
const sanitizeTitle = (text: string, emojiMap: any) => DOMPurify.sanitize(emojify(escapeTextContentForBrowser(text), emojiMap), { ALLOWED_TAGS: ['img'] });
|
||||
|
||||
const normalizePoll = (poll: Exclude<BaseStatus['poll'], null>) => {
|
||||
const emojiMap = makeEmojiMap(poll.emojis);
|
||||
|
|
Loading…
Reference in a new issue