Fix emoji in HTML attribute value

This commit is contained in:
cutls 2022-12-10 12:29:49 +09:00
parent bf4f3c2e5e
commit 9af6c5536a

View File

@ -845,7 +845,10 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type, onlyContent) {
}) })
} }
//デフォ絵文字 //デフォ絵文字
content = twemoji.parse(content) const contentElement = document.createElement('div')
contentElement.innerHTML = content
const emojified = twemoji.parse(contentElement)
content = emojified.innerHTML
if (dis_name) { if (dis_name) {
dis_name = twemoji.parse(dis_name) dis_name = twemoji.parse(dis_name)