mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 02:48:28 +08:00
Allow option to not include title on emoji images.
This commit is contained in:
@ -38,7 +38,7 @@ export function performEmojiUnescape(string, opts) {
|
||||
const classes = isCustomEmoji(emojiVal, opts) ? "emoji emoji-custom" : "emoji";
|
||||
|
||||
return url && (isEmoticon || hasEndingColon) ?
|
||||
`<img src='${url}' title='${emojiVal}' alt='${emojiVal}' class='${classes}'>` : m;
|
||||
`<img src='${url}' ${opts.skipTitle ? '' : `title='${emojiVal}'`} alt='${emojiVal}' class='${classes}'>` : m;
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user